﻿.register-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.register-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.register-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.register-title {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 700;
}

.register-subtitle {
    margin: 0;
    opacity: 0.95;
    font-size: 1em;
}

/* Demo Notice */
.demo-notice {
    margin: 0;
    border-top: 4px solid #ffd700;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    animation: slideInDown 0.5s ease-out 0.3s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-notice-header {
    background: linear-gradient(90deg, #ff6f00 0%, #ff8f00 100%);
    color: white;
    padding: 12px 20px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-notice-header i {
    font-size: 1.3em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.demo-notice-content {
    padding: 20px 25px;
}

.demo-notice-title {
    font-size: 1.1em;
    color: #d84315;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-notice-title i {
    font-size: 1.2em;
}

.demo-notice-highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 1.05em;
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.demo-notice-highlight i {
    font-size: 1.5em;
    color: #ff6f00;
}

.demo-notice-details {
    margin-top: 15px;
}

.demo-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #5d4037;
    line-height: 1.5;
}

.demo-point i {
    font-size: 1.1em;
    margin-top: 2px;
    flex-shrink: 0;
}

.demo-point:nth-child(1) i { color: #4caf50; }
.demo-point:nth-child(2) i { color: #2196f3; }
.demo-point:nth-child(3) i { color: #9c27b0; }
.demo-point:nth-child(4) i { color: #ff5722; }

.demo-point span {
    flex: 1;
}

/* Form */
.register-form {
    padding: 35px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-label i {
    color: #667eea;
    margin-right: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    margin-top: 6px;
    font-size: 0.85em;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-hint i {
    font-size: 1em;
}

/* Checkbox Agreement */
.agreement-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin: 25px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.agreement-checkbox {
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-label {
    flex: 1;
    color: #495057;
    font-size: 0.95em;
    line-height: 1.5;
}

.terms-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.terms-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.agreement-error {
    display: block;
    margin-top: 8px;
}

/* Errors */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin: 20px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    font-size: 1.2em;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 6px;
    font-weight: 500;
}

/* Button */
.btn-register {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-register:active {
    transform: translateY(0);
}

/* Footer */
.register-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}

.footer-text {
    color: #6c757d;
    font-size: 0.95em;
    margin-right: 8px;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.login-link:hover {
    color: #764ba2;
    text-decoration: none;
    transform: translateX(2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .register-container {
        margin: 20px auto;
        padding: 15px;
    }

    .register-header {
        padding: 30px 20px;
    }

    .header-icon {
        font-size: 3em;
    }

    .register-title {
        font-size: 1.6em;
    }

    .register-subtitle {
        font-size: 0.9em;
    }

    .demo-notice-header {
        font-size: 1em;
        padding: 10px 15px;
    }

    .demo-notice-content {
        padding: 15px 20px;
    }

    .demo-notice-title {
        font-size: 1em;
    }

    .demo-notice-highlight {
        font-size: 0.95em;
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }

    .demo-point {
        font-size: 0.9em;
    }

    .register-form {
        padding: 25px 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .btn-register {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .register-container {
        margin: 10px;
        padding: 0;
    }

    .register-card {
        border-radius: 12px;
    }

    .register-header {
        padding: 25px 15px;
    }

    .demo-notice-header {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .demo-notice-content {
        padding: 12px 15px;
    }

    .demo-notice-title {
        font-size: 0.95em;
    }

    .demo-notice-highlight {
        font-size: 0.9em;
        padding: 10px;
    }

    .demo-point {
        font-size: 0.85em;
        margin-bottom: 10px;
    }

    .register-form {
        padding: 20px 15px;
    }
}
