/* Login + OTP verification pages — a self-contained "brand" look distinct
   from the rest of the AdminLTE-styled app, since these are the one place
   an unauthenticated visitor lands. Navy/blue gradient matches the
   CheqExpress logo (icons/CheqExpress.png); kept as its own vars rather
   than reading assets/css/app.css's :root since these pages load this
   stylesheet standalone. See includes/otp.php::deliver_otp_email for the
   matching OTP email template colors. */

:root {
    --auth-blue: #1f5fb8;
    --auth-blue-dark: #14336b;
    --auth-navy: #0f1f4a;
}

body.auth-bg {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 10%, #94baff 10%, #fff 35%, #94baff 90%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box { width: 100%; max-width: 400px; margin: 24px; }
.otp-box { max-width: 420px; }

.auth-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .2);
}

.auth-card-header {
    background: linear-gradient(135deg, var(--auth-blue) 0%, var(--auth-blue-dark) 55%, var(--auth-navy) 100%);
    padding: 36px 32px 28px;
    text-align: center;
    color: #fff;
}

.auth-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .08);
}

.auth-app-name { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.auth-subtitle { font-size: 13px; color: rgba(255, 255, 255, .82); margin-top: 4px; }

.auth-card-body { background: #ffffff; padding: 28px 32px 30px; }

.auth-alert { font-size: 13.5px; border-radius: 10px; border: none; padding: 10px 14px; }

.auth-input-group { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px #e2e8f0; transition: box-shadow .15s; }
.auth-input-group:focus-within { box-shadow: 0 0 0 2px var(--auth-blue-dark); }
.auth-input-group .input-group-text { background: #f8fafc; border: none; color: #64748b; width: 42px; justify-content: center; }
.auth-input-group .form-control { border: none; height: 44px; }
.auth-input-group .form-control:focus { box-shadow: none; }

.auth-btn {
    background: linear-gradient(135deg, var(--auth-blue) 0%, var(--auth-blue-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    height: 44px;
    border-radius: 10px;
    transition: transform .12s, box-shadow .12s, opacity .12s;
    box-shadow: 0 6px 16px rgba(20, 51, 107, .35);
}
.auth-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20, 51, 107, .42); color: #fff; }
.auth-btn:disabled { opacity: .55; box-shadow: none; }

.auth-footnote { margin-top: 18px; text-align: center; font-size: 11.5px; color: #94a3b8; }

.auth-resend-btn { border-radius: 10px; height: 42px; font-size: 13.5px; font-weight: 500; }
.auth-cancel-link { font-size: 13px; color: #64748b; text-decoration: none; }
.auth-cancel-link:hover { color: var(--auth-blue-dark); text-decoration: underline; }

/* 6-digit OTP entry: square boxes, auto-advance handled by otp_verify.php's inline script. */
.otp-digit-row { display: flex; gap: 8px; justify-content: center; margin: 4px 0 18px; }
.otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-blue-dark);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.otp-digit:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 3px rgba(31, 95, 184, .18); }

.otp-status-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #64748b; }
.otp-countdown { font-weight: 500; }
.otp-attempts { font-weight: 500; }

@media (max-width: 420px) {
    .otp-digit { width: 38px; height: 46px; font-size: 19px; }
    .otp-digit-row { gap: 6px; }
}
