/* =========================
   GLOBAL BASE
========================= */
body {
    background: linear-gradient(135deg, #0F4C8B 0%, #1B7FA6 50%, #0A3B6F 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================
   BRAND / HEADER
========================= */
.brand-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
}

/* =========================
   LOGO
========================= */
.app-logo {
    max-width: 160px;
    background: #FFFFFF;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =========================
   AUTH LAYOUT
========================= */
.auth-outer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
     max-width: 1100px;
    width: 100%;
    margin: auto;
}
.auth-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.bg-white {
    background: #FFFFFF !important;
}

/* =========================
   HEADINGS & TEXT
========================= */
h3,
h4 {
    color: #0F4C8B;
    font-weight: 700;
}

.form-label {
    color: #0F4C8B;
    font-weight: 600;
}

/* =========================
   FORM ELEMENTS
========================= */
.form-control,
.form-select {
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Compact density
.form-control,
.form-select {
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
} */

.form-floating > label {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
}



/* =========================
   BUTTONS
========================= */
.btn-gradient {
    background: linear-gradient(135deg, #0F4C8B 0%, #1B7FA6 100%);
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #0A3B6F 0%, #0F4C8B 100%);
    color: #fff;
}
.btn-back {
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    color: #374151;
}

.btn-back:hover:not(:disabled) {
    background: #E5E7EB;
}

.btn-back:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* =========================
   EXTRA UI
========================= */
.security-info {
    padding: 12px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 12px;
    color: #0F4C8B;
}

.register-link {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.register-link a {
    color: #0F4C8B;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
    background-color: #0F4C8B;
    color: white;
}

/* ===== STEP WRAPPER ===== */
.form-steps-wrapper {
    min-height: 380px;
}


/* ===== FORM STEPS ===== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* ===== THEMED STEP INDICATOR ===== */
.themed-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.themed-steps .step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    z-index: 2; /* ⬅ circles/text stay on top */
}

.themed-steps .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #0F4C8B, #1B7FA6);
    color: #fff;

    margin: 0 auto 4px;
    font-weight: 700;

    position: relative;
    z-index: 3;               /* ⬅ ABOVE connector */
    box-shadow: 0 0 0 6px #fff; /* ⬅ MASK the line */}

.themed-steps .step-label {
    display: block;
}

.themed-steps .step.active {
    color: #0F4C8B;
}

.themed-steps .step.active .step-circle {
    background: linear-gradient(135deg, #0F4C8B, #1B7FA6);
    color: #fff;
}
/* connector line */
.themed-steps .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: #E5E7EB;
    z-index: 1;
}

/* completed connector */
.themed-steps .step.completed:not(:last-child)::after {
    background: linear-gradient(135deg, #0F4C8B, #1B7FA6); /* completed step */
}


.themed-steps .step.active::after {
    background: linear-gradient(135deg, #0F4C8B, #1B7FA6);
}

/* ===== COMPLETED STEP ===== */
.themed-steps .step.completed {
    color: #0F4C8B;
}

.themed-steps .step.completed .step-circle {
    background: linear-gradient(135deg, #0F4C8B, #1B7FA6);
    color: #fff;
}

/* checkmark icon */
.themed-steps .step.completed .step-circle::before {
    content: "✓";
    font-size: 16px;
    font-weight: 800;
}

/* hide number when completed */
.themed-steps .step.completed .step-circle {
    font-size: 0;
}


/* ===== THEMED PROGRESS BAR ===== */
.themed-progress {
    height: 6px;
    background-color: #E5E7EB;
    border-radius: 50px;
    overflow: hidden;
}

.themed-progress .progress-bar {
    background: linear-gradient(90deg, #0F4C8B, #1B7FA6);
    transition: width 0.4s ease;
}



/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
     
    .auth-outer {
        padding: 0px;
    }

    .app-logo {
        max-width: 120px;
        padding: 10px;
    }

      .form-steps-wrapper {
        min-height: auto;
    }
    .form-control,
    .form-select {
        font-size: 0.82rem;
        padding: 0.45rem 0.6rem;
    }

    .form-floating > label {
        font-size: 0.7rem;
    }

    .step-indicator {
        font-size: 12px;
    }

    .form-step h6 {
        font-size: 0.95rem;
    }

    .auth-card {
        border-radius: 0;
        box-shadow: none;
    }

    .themed-steps .step-label {
        font-size: 11px;
    }

    .themed-steps .step-circle {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}
