/* =====================================================
   HEFNER BANKING — REGISTER PAGE
   ===================================================== */

/* Reset */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* =====================================================
   SPLIT LAYOUT
   ===================================================== */
.register-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* =====================================================
   LEFT SIDE — Dark Navy Branding
   ===================================================== */
.register-left-side {
    background: #1a1a2e;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    gap: 2rem;
}

/* Decorative gold-tint circles */
.register-left-side::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    top: -200px;
    left: -160px;
    pointer-events: none;
}

.register-left-side::after {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    bottom: -130px;
    right: -110px;
    pointer-events: none;
}

/* Logo Card — Script Font in Gold Glass Box */
.register-logo-wrap {
    position: relative;
    z-index: 2;
    background: rgba(201, 168, 76, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.30);
    border-radius: 1.25rem;
    padding: 1rem 2.5rem;
    display: inline-block;
    text-align: center;
}

.register-logo-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #c9a84c;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* Branding Text */
.register-branding {
    position: relative;
    z-index: 2;
    text-align: center;
}

.register-welcome {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.4rem;
    line-height: 1.15;
}

.register-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem;
}

.register-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto;
}

/* Feature Cards Grid */
.register-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
}

.register-feature-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    cursor: default;
}

.register-feature-card:hover {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-2px);
}

.register-feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #c9a84c;
    flex-shrink: 0;
}

.register-feature-text h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.15rem;
    line-height: 1.3;
}

.register-feature-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* =====================================================
   RIGHT SIDE — Form Panel
   ===================================================== */
.register-right-side {
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow-y: auto;
    min-height: 100vh;
}

/* Theme Toggle */
.theme-toggle-register {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    z-index: 100;
    font-size: 1rem;
}

.theme-toggle-register:hover {
    background: #c9a84c;
    color: #ffffff;
}

/* Form Card */
.register-form-container {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.08);
    padding: 2.5rem 2.25rem 2rem;
    position: relative;
}

/* =====================================================
   FORM HEADER
   ===================================================== */
.register-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.register-form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.register-step-indicator {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    margin: 0;
}

/* =====================================================
   PROGRESS STEPPER — Numbered circles + connecting line
   ===================================================== */
.progress-stepper {
    margin-bottom: 2rem;
}

/* The filled progress track */
.stepper-track {
    width: 100%;
    height: 3px;
    background: #eeeeee;
    border-radius: 99px;
    margin-bottom: 1.1rem;
    overflow: hidden;
}

.stepper-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a84c, #b8962a);
    border-radius: 99px;
    width: 25%; /* updated via JS */
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icons row */
.stepper-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

/* Default circle — numbered */
.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #aaaaaa;
    border: 2px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

/* Active step — gold ring + gold number */
.step-item.active .step-icon {
    background: #ffffff;
    color: #c9a84c;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Completed step — solid navy fill + gold checkmark */
.step-item.completed .step-icon {
    background: #1a1a2e;
    color: #c9a84c;
    border-color: #1a1a2e;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #aaaaaa;
    text-align: center;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: #c9a84c;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #1a1a2e;
    font-weight: 600;
}

/* =====================================================
   FORM STEPS
   ===================================================== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Step Large Icon (centered above title) */
.step-icon-large {
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.1);
    color: #c9a84c;
    border-radius: 1rem;
    border: 1.5px solid rgba(201, 168, 76, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.1rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 0.3rem;
}

.step-subtitle {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin: 0 0 1.5rem;
}

/* =====================================================
   FORM FIELDS
   ===================================================== */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: rgba(201, 168, 76, 0.55);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #c9a84c;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #e8e8e8;
    border-radius: 0.75rem;
    background: #fafafa;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: #bbb;
    font-size: 0.9rem;
}

.form-input:focus {
    outline: none;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
    background: #ffffff;
}

select.form-input {
    cursor: pointer;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Password toggle */
.toggle-password {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    color: rgba(201, 168, 76, 0.45);
    cursor: pointer;
    padding: 0.4rem;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: #c9a84c;
}

/* =====================================================
   CHECKBOX
   ===================================================== */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
    background: #fafafa;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #c9a84c;
    border-color: #c9a84c;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.65rem;
}

.checkbox-text {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.checkbox-text a {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* =====================================================
   NAVIGATION BUTTONS
   ===================================================== */
.form-navigation {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.75rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 0.825rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Previous — light ghost */
.btn-prev {
    background: transparent;
    color: #888;
    border: 1.5px solid #e0e0e0;
}

.btn-prev:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.04);
}

/* Next — Gold */
.btn-next {
    background: #c9a84c;
    color: #ffffff;
}

.btn-next:hover {
    background: #b8962a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

/* Submit (Create Account) — Navy with gold text */
.btn-submit {
    background: #1a1a2e;
    color: #c9a84c;
    border: 1.5px solid #1a1a2e;
}

.btn-submit:hover {
    background: #141424;
    border-color: #141424;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 26, 46, 0.35);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
.form-footer {
    text-align: center;
    margin-top: 1.25rem;
}

.signin-text {
    font-size: 0.875rem;
    color: #888;
    margin: 0;
}

.signin-link {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
}

.signin-link:hover {
    text-decoration: underline;
}

.register-copyright {
    text-align: center;
    font-size: 0.78rem;
    color: #bbb;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* =====================================================
   DARK MODE — [data-theme="dark"] on <html>
   ===================================================== */
[data-theme="dark"] .register-right-side {
    background: #141424;
}

[data-theme="dark"] .register-form-container {
    background: #1e1e38;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2), 0 12px 40px rgba(0,0,0,0.35);
}

[data-theme="dark"] .register-form-title,
[data-theme="dark"] .step-title {
    color: #f0f0f0;
}

[data-theme="dark"] .register-step-indicator {
    color: #666;
}

[data-theme="dark"] .form-label {
    color: #ccc;
}

[data-theme="dark"] .form-input {
    background: #252545;
    border-color: #333355;
    color: #eee;
}

[data-theme="dark"] .form-input::placeholder {
    color: #555;
}

[data-theme="dark"] .form-input:focus {
    border-color: #c9a84c;
    background: #2a2a50;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

[data-theme="dark"] .step-icon {
    background: #252545;
    color: #555;
    border-color: #333355;
}

[data-theme="dark"] .step-item.active .step-icon {
    background: #1e1e38;
    color: #c9a84c;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

[data-theme="dark"] .step-item.completed .step-icon {
    background: #c9a84c;
    color: #1a1a2e;
    border-color: #c9a84c;
}

[data-theme="dark"] .step-item.completed .step-label {
    color: #c9a84c;
}

[data-theme="dark"] .stepper-track {
    background: #2a2a4a;
}

[data-theme="dark"] .step-icon-large {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.2);
}

[data-theme="dark"] .step-subtitle {
    color: #666;
}

[data-theme="dark"] .btn-prev {
    background: transparent;
    border-color: #333355;
    color: #888;
}

[data-theme="dark"] .btn-prev:hover {
    border-color: #c9a84c;
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.05);
}

[data-theme="dark"] .btn-submit {
    background: rgba(201, 168, 76, 0.1);
    color: #c9a84c;
    border-color: rgba(201, 168, 76, 0.3);
}

[data-theme="dark"] .btn-submit:hover {
    background: rgba(201, 168, 76, 0.18);
    border-color: #c9a84c;
}

[data-theme="dark"] .theme-toggle-register {
    background: #252545;
    color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .signin-text {
    color: #666;
}

[data-theme="dark"] .register-copyright {
    color: #444;
}

[data-theme="dark"] .checkbox-text {
    color: #999;
}

[data-theme="dark"] .checkbox-custom {
    border-color: #444;
    background: #252545;
}

[data-theme="dark"] .toggle-password {
    color: rgba(201, 168, 76, 0.35);
}

[data-theme="dark"] .toggle-password:hover {
    color: #c9a84c;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .register-split-layout {
        grid-template-columns: 1fr;
    }

    .register-left-side {
        display: none;
    }

    .register-right-side {
        min-height: 100vh;
        background: #f4f5f7;
    }

    [data-theme="dark"] .register-right-side {
        background: #141424;
    }
}

@media (max-width: 520px) {
    .register-form-container {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 1rem;
    }

    .register-form-title {
        font-size: 1.35rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }
}
