/* ===================================
   REGISTER PAGE - MODERN BLUE DESIGN
   =================================== */

.register-section {
    min-height: 100vh;
    padding-top: 160px; 
    padding-bottom: 60px;
    background: linear-gradient(135deg, #050A30 0%, #12229D 50%, #233DFF 100%);
    position: relative;
    overflow: hidden;
}

.register-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(92, 182, 249, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(35, 61, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================================
   LEFT SIDE - INFO & BENEFITS
   =================================== */

.register-info {
    position: sticky;
    top: 160px; 
}

.register-info-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.register-info-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    line-height: 1.6;
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.register-benefit {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-check {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5CB6F9 0%, #CAE8FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(92, 182, 249, 0.4);
}

.register-benefit h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.register-benefit p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.register-testimonial {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 32px;
    border-radius: 20px;
    position: relative;
}

.testimonial-icon {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.testimonial-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    color: rgba(92, 182, 249, 0.95);
    font-weight: 600;
}

/* ===================================
   RIGHT SIDE - FORM CARD
   =================================== */

.register-form-container {
    position: relative;
}

.register-form-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===================================
   FORM ELEMENTS
   =================================== */

.register-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(35, 61, 255, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--text-light);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary);
}

.input-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.input-hint a {
    color: var(--primary);
    text-decoration: underline;
}

#usernamePreview {
    color: var(--primary);
    font-weight: 600;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--gray);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #EF4444;
}

.strength-fill.medium {
    width: 66%;
    background: #F59E0B;
}

.strength-fill.strong {
    width: 100%;
    background: #10B981;
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(35, 61, 255, 0.3);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35, 61, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* Terms Agreement Text */
.terms-agreement {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 0;
}

.terms-agreement a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray);
}

.form-divider span {
    font-size: 14px;
    color: var(--text-light);
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    padding: 12px 20px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    background: var(--white);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.btn-social:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 61, 255, 0.15);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray);
}

.form-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alert Styling */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid;
}

.alert-error {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #991B1B;
}

.alert-error strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error li {
    margin: 4px 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .register-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .register-info {
        position: relative;
        top: 0;
        text-align: center;
    }

    .register-info-title {
        font-size: 40px;
    }

    .register-benefits {
        max-width: 600px;
        margin: 0 auto 48px;
    }

    .register-testimonial {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 110px 0 40px;
    }

    .register-form-card {
        padding: 32px 24px;
    }

    .form-header h2 {
        font-size: 28px;
    }

    .register-info-title {
        font-size: 32px;
    }

    .register-info-subtitle {
        font-size: 18px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .register-benefit {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .register-form-card {
        padding: 24px 20px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .input-wrapper input {
        padding: 12px 44px 12px 14px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 14px 28px;
        font-size: 15px;
    }

    .terms-agreement {
        font-size: 12px;
    }
}

/* ===================================
   FORM VALIDATION STATES
   =================================== */

.input-wrapper input.error {
    border-color: #EF4444;
}

.input-wrapper input.success {
    border-color: #10B981;
}

.error-message {
    font-size: 13px;
    color: #EF4444;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}