/* ============================================
   REGISTER PAGE STYLES - FIXED
   ============================================ */

.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fefcf0, #fef9e7);
    padding: 20px;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    min-height: 600px;
}

/* ============================================
   LEFT - BRAND SECTION
   ============================================ */
.register-brand {
    background: #0b1a33;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.register-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05), transparent 70%);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
}

.brand-logo i {
    color: #fbbf24;
}

.brand-logo .highlight {
    color: #fbbf24;
}

.brand-illustration {
    font-size: 5rem;
    color: #fbbf24;
    opacity: 0.15;
    margin-bottom: 30px;
}

.brand-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.brand-content p {
    color: #b8c9e0;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 30px;
    max-width: 380px;
}

.brand-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #b8c9e0;
    margin-top: 4px;
}

/* ============================================
   RIGHT - FORM SECTION
   ============================================ */
.register-form-wrapper {
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.register-form-container {
    width: 100%;
    max-width: 440px;
}

.form-header {
    margin-bottom: 28px;
}

.form-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1a33;
    margin: 0 0 4px;
}

.form-header p {
    color: #4a5f7a;
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   FORM ELEMENTS - FIXED
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d4059;
    margin-bottom: 4px;
}

.required {
    color: #fc8181;
}

/* Input Wrapper - Fixed positioning */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: #a0aec0;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.input-wrapper .form-input {
    width: 100%;
    padding: 12px 48px 12px 42px; /* ✅ Increased right padding for eye button */
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d4059;
    font-family: inherit;
}

.input-wrapper .form-input:focus {
    outline: none;
    border-color: #fbbf24;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.input-wrapper .form-input.error {
    border-color: #fc8181;
    background: #fff5f5;
}

.input-wrapper .form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

/* ✅ Password Toggle - Fixed positioning inside input */
/* ============================================
   FORM ELEMENTS - FIXED
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d4059;
    margin-bottom: 4px;
}

.required {
    color: #fc8181;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: #a0aec0;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

/* ✅ Input with proper padding */
.input-wrapper .form-input {
    width: 100%;
    padding: 12px 60px 12px 42px; /* Right padding for eye button */
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f7fafc;
    color: #2d4059;
    font-family: inherit;
}

.input-wrapper .form-input:focus {
    outline: none;
    border-color: #fbbf24;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.input-wrapper .form-input.error {
    border-color: #fc8181;
    background: #fff5f5;
}

.input-wrapper .form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

/* ✅ Password Toggle - Properly positioned */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1rem;
    transition: 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 8px;
    pointer-events: auto;
    touch-action: manipulation;
}

.password-toggle:hover {
    color: #4a5f7a;
    background: rgba(0, 0, 0, 0.04);
}

.password-toggle:focus {
    outline: none;
}

/* ✅ For mobile responsiveness */
@media (max-width: 480px) {
    .input-wrapper .form-input {
        padding: 10px 56px 10px 38px;
        font-size: 0.9rem;
    }
    
    .password-toggle {
        right: 16px;
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        padding: 0;
    }
}

.form-hint {
    font-size: 0.78rem;
    color: #a0aec0;
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: #fc8181;
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

/* ============================================
   PASSWORD STRENGTH
   ============================================ */
.password-strength {
    margin-top: 8px;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.password-strength.hidden {
    display: none;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.4s ease, background 0.4s ease;
}

.strength-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a5f7a;
    margin-bottom: 8px;
}

.strength-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

.requirement {
    font-size: 0.75rem;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.requirement i {
    font-size: 0.5rem;
    color: #a0aec0;
}

.requirement.met {
    color: #48bb78;
}

.requirement.met i {
    color: #48bb78;
}

/* ============================================
   CHECKBOX - FIXED
   ============================================ */
.checkbox-group {
    margin-top: 4px;
    padding: 4px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2d4059;
    line-height: 1.5;
    padding: 2px 0;
}

/* ✅ Hide the default checkbox */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* ✅ Custom checkbox - properly sized and positioned */
.checkmark {
    display: inline-block;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 5px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ✅ Hover state */
.checkbox-label:hover .checkmark {
    border-color: #fbbf24;
}

/* ✅ Checked state */
.checkbox-label input:checked + .checkmark {
    background: #fbbf24;
    border-color: #fbbf24;
}

/* ✅ Checkmark icon */
.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0b1a33;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

/* ✅ Focus state for accessibility */
.checkbox-label input:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

.checkbox-label a {
    color: #fbbf24;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #fbbf24;
    color: #0b1a33;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: inline;
}

/* ============================================
   FORM FOOTER
   ============================================ */
.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #4a5f7a;
}

.form-footer a {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.success-icon {
    font-size: 4rem;
    color: #48bb78;
    text-align: center;
    margin-bottom: 16px;
}

.success-icon i {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.modal-confirm h4 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #0b1a33;
}

.modal-confirm p {
    text-align: center;
    color: #4a5f7a;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.verification-instructions {
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0 16px;
    font-size: 0.9rem;
}

.success-actions {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.success-actions .btn-primary,
.success-actions .btn-outline {
    flex: 1;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.success-actions .btn-primary {
    background: #fbbf24;
    color: #0b1a33;
}

.success-actions .btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.success-actions .btn-outline {
    background: transparent;
    color: #4a5f7a;
    border: 2px solid #e2e8f0;
}

.success-actions .btn-outline:hover {
    border-color: #fbbf24;
    color: #fbbf24;
}

.success-tips {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fefcf0;
    border-radius: 8px;
    border-left: 3px solid #fbbf24;
}

.success-tips p {
    margin: 0;
    font-size: 0.85rem;
    color: #4a5f7a;
    text-align: left;
}

.success-tips i {
    color: #fbbf24;
    margin-right: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .register-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .register-brand {
        padding: 32px 30px;
        text-align: center;
    }
    
    .brand-content p {
        max-width: 100%;
        margin: 0 auto 20px;
    }
    
    .brand-stats {
        justify-content: center;
    }
    
    .register-form-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .register-page {
        padding: 10px;
    }
    
    .register-container {
        border-radius: 16px;
    }
    
    .register-brand {
        padding: 24px 20px;
    }
    
    .brand-logo {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .brand-illustration {
        font-size: 3rem;
        margin-bottom: 16px;
    }
    
    .brand-content h2 {
        font-size: 1.4rem;
    }
    
    .brand-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px 8px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .register-form-wrapper {
        padding: 24px 16px;
    }
    
    .form-header h1 {
        font-size: 1.4rem;
    }
    
    .strength-requirements {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .modal {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .register-brand {
        padding: 16px 16px;
    }
    
    .brand-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .register-form-wrapper {
        padding: 16px 12px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .input-wrapper .form-input {
        padding: 10px 44px 10px 38px;
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .checkmark {
        width: 18px;
        min-width: 18px;
        height: 18px;
    }
}