/* =======================================================================
    AUTH PAGES (login.php + signup.php) -- shared styling
   ======================================================================= */
.auth-outer {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 38px 36px;
    transition: max-width .2s ease;
}

.auth-card.wide {
    max-width: 560px;
}

.auth-logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
}

.auth-logo-center .mark {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 12px;
}

.auth-logo-center .word {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
}

.auth-logo-center .word span {
    color: var(--amber);
}

.auth-card h2 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 29px;
    color: var(--text);
    text-align: start;
}

.auth-card p.sub {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 26px;
    font-weight: 400;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.field .input-wrap {
    position: relative;
}

.field .input-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9AA5B4;
    pointer-events: none;
}

.field input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 12px 13px 12px 40px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text);
    background: #fff;
    transition: border-color .15s;
}

.field input::placeholder {
    color: #B0B8C4;
}

.field input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: none;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-submit {
    width: 100%;
    background: var(--amber);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 13px;
    border-radius: 9px;
}

.auth-submit:hover {
    background: var(--amber-dark);
}

.auth-secondary {
    width: 100%;
    background: #fff;
    color: var(--navy);
    border: 1.5px solid var(--border);
    font-weight: 600;
    font-size: 13.5px;
    padding: 12px;
    border-radius: 9px;
}

.auth-secondary:hover {
    border-color: var(--navy);
}

.step-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.step-actions .auth-secondary {
    flex: 0 0 110px;
}

.step-actions .auth-submit {
    flex: 1;
}

.switch-link {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 20px;
    font-weight: 400;
}

.switch-link a {
    color: var(--amber);
    font-weight: 600;
}

.auth-note-bottom {
    font-size: 11.5px;
    color: #AAB2BE;
    font-weight: 400;
    text-align: center;
    margin-top: 16px;
}

/* signup header: logo left, stepper right */
.auth-top-row {
    margin-bottom: 53px;
}

.auth-logo-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-logo-left .mark {
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
}

.auth-logo-left .word {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.auth-logo-left .word span {
    color: var(--amber);
}

.stepper {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 262px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 53%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s;
}

.step-circle.active {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
}

.step-circle.done {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.step-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
}

.step-label.active {
    color: var(--navy);
}

.step-line {
    width: 218px;
    height: 1.5px;
    background: var(--border);
    margin-top: 21px;
}

.step-line.done {
    background: var(--navy);
}

.step-heading {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.step-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.approval-note {
    display: flex;
    gap: 11px;
    background: #FFF7EA;
    border: 1px solid #F3DDA0;
    border-radius: 11px;
    padding: 13px 14px;
    margin-bottom: 20px;
}

.approval-note .circ {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.approval-note b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #6B4A0A;
    margin-bottom: 2px;
}

.approval-note span {
    font-size: 11.5px;
    color: #8A6420;
    font-weight: 400;
    line-height: 1.5;
}

.review-list {
    border-radius: 11px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding:13px 0;
    border-bottom: 1px solid #f1f1f1;
}

.review-row:last-child {
    border-bottom: none;
}

.review-row span:first-child {
    color: var(--muted);
}

.review-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.auth-success {
    text-align: center;
}

.auth-success .circ {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #EAF7EE;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.auth-success h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-success p {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 20px;
}

.auth-success .timeline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    background: var(--bg);
    border-radius: 999px;
    padding: 9px 16px;
    margin-bottom: 22px;
}

.forgot-link{
    font-size: 13px;
    color: var(--amber-dark);
    text-align:start;
    margin-bottom: 11px;
    font-weight: 500;
}

@media(max-width:480px) {
    .auth-card {
        padding: 28px 22px;
    }

    .step-label {
        display: none;
    }
}