﻿/* ── Shared compact auth layout ─────────────────────────────────── */
html, body, .auth-body {
    background: linear-gradient(135deg, #f0f4f0 0%, #e8ede8 100%);
    background-attachment: fixed;
    margin: 0;
}

.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 60px;
    min-height: calc(100vh - 140px);
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.auth-brand-name {
    font-size: .9rem;
    font-weight: 800;
    color: #111827;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.2;
}

.auth-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 22px;
    line-height: 1.55;
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    margin-bottom: 16px;
}
.auth-alert-err { background:#fef2f2; border:1px solid #fca5a5; color:#b91c1c; }
.auth-alert-ok  { background:#E8F5E9; border:1px solid #A5D6A7; color:#2E7D32; display:flex; align-items:center; gap:8px; font-weight:600; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.auth-field { display: flex; flex-direction: column; gap: 5px; }

.auth-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #374151;
    letter-spacing: .02em;
}

.auth-input {
    width: 100%;
    padding: 11px 14px;
    background: #f3f4f6;
    border: 1.5px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    color: #111827;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
}
.auth-input::placeholder { color: #9ca3af; }
.auth-input:focus { background: #fff; border-color: #2E7D32; box-shadow: 0 0 0 3px rgba(46,125,50,.09); }

.auth-phone-wrap { position: relative; }
.auth-phone-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; font-size: 14px; pointer-events: none;
}
.auth-input-ph { padding-left: 36px; }

.auth-hint { font-size: 11px; color: #9ca3af; margin-top: 2px; }

.auth-btn {
    width: 100%;
    padding: 12px;
    background: #2E7D32;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(46,125,50,.28);
    transition: background .18s, transform .14s;
    margin-top: 2px;
}
.auth-btn:hover { background: #1B5E20; transform: translateY(-1px); }
.auth-btn:disabled { opacity: .55; cursor: default; transform: none; }

.auth-switch {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}
.auth-switch-link {
    color: #2E7D32;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
}
.auth-switch-link:hover {
    color: #1B5E20;
    text-decoration: underline;
}

/* OTP boxes */
.auth-otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.auth-otp-box {
    width: 46px; height: 54px; flex-shrink: 0;
    text-align: center;
    font-size: 1.45rem; font-weight: 800;
    background: #f3f4f6;
    border: 1.5px solid transparent;
    border-radius: 9px;
    color: #111827; outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    caret-color: #2E7D32;
    appearance: none;
}
.auth-otp-box:focus {
    background: #fff; border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46,125,50,.09);
}

.auth-resend-row {
    text-align: center;
    font-size: 12.5px;
    color: #6b7280;
    margin-top: 14px;
}
.auth-resend-btn {
    background: none; border: none;
    font-size: 12.5px; font-weight: 700; color: #2E7D32;
    cursor: pointer; padding: 0 3px;
}
.auth-resend-btn:hover { text-decoration: underline; }

/* Steps (verify page) */
.auth-steps { display: flex; flex-direction: column; gap: 0; margin: 18px 0 20px; }
.auth-step { display: flex; align-items: center; gap: 12px; }
.auth-step-dot {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}
.auth-dot-done    { background: #2E7D32; color: #fff; }
.auth-dot-active  { background: #FBC02D; color: #1B5E20; font-weight: 800; }
.auth-dot-pending { background: #f3f4f6; color: #9ca3af; border: 1.5px solid #e5e7eb; }
.auth-step-label  { font-size: 12.5px; font-weight: 600; color: #374151; }
.auth-step-label.dim { color: #9ca3af; }
.auth-step-line {
    width: 2px; height: 18px;
    background: #e5e7eb;
    margin-left: 13px;
}
.auth-step-line.done { background: #2E7D32; }

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .auth-title { font-size: 1.3rem; }
    .auth-otp-box { width: 40px; height: 48px; font-size: 1.25rem; }
}
