/**
 * Developed by Mohammad Rameez Imdad (Rameez Scripts)
 * WhatsApp: https://wa.me/923435347417 (For Custom Projects)
 * YouTube: https://www.youtube.com/@rameezimdad (Subscribe for more!)
 *
 * sign-in pages — staff login, signup, password, OTP and the customer portal login
 */
.web-auth .auth-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 96px); align-items: center;
    min-height: 100vh; padding: 128px var(--pad) 96px; background: var(--grad); color: #fff; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; isolation: isolate; }
.web-auth .auth-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background: radial-gradient(42% 60% at 12% 0%, rgba(255, 255, 255, .16), transparent 70%), radial-gradient(30% 40% at 92% 100%, rgba(142, 201, 255, .35), transparent 70%); }

/* left: copy + drawing */
.auth-visual { min-width: 0; }
.auth-visual h1 { font-size: clamp(38px, 4vw, 66px); font-weight: 300; line-height: 1.06; letter-spacing: -.03em; max-width: 14ch; }
.auth-visual h1 .hl { color: var(--peach); font-weight: 400; }
.auth-visual .lead { margin-top: 20px; }
.auth-visual .facts { margin-top: 30px; padding-top: 22px; }
.auth-visual .hero-art { margin-top: 14px; max-width: 420px; }
.auth-visual .art-hero { margin: 0; }
.auth-visual .art .o-7 { opacity: 1; }
.auth-visual .art .o-5 { opacity: .85; }

/* right: the card */
.auth-panel { display: flex; justify-content: flex-end; min-width: 0; }
.auth-card { width: 100%; max-width: 500px; padding: clamp(26px, 3.2vw, 46px); border-radius: 32px; background: var(--card); color: var(--ink);
    box-shadow: 0 40px 90px -30px rgba(3, 8, 76, .6); animation: cardIn 1s .2s var(--ease) both; }
.auth-card-ic { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--peach-l); color: var(--coral-d); font-size: 22px; }
.auth-title { font-family: var(--head); font-size: clamp(30px, 2.6vw, 40px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.auth-sub { margin: 10px 0 28px; color: var(--muted); font-size: 15.5px; }
.auth-sub .highlight, .auth-card .highlight { color: var(--ink); font-weight: 600; }
.auth-card .form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.auth-card .form-group label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.auth-card .form-group label i { margin-right: 6px; color: var(--coral); }
.auth-input { position: relative; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=tel], .auth-card input[type=number] {
    width: 100%; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--cream);
    font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; }
.auth-card input::placeholder { color: #8a9ab3; }
.auth-card input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .12); }
.auth-input input { padding-right: 56px !important; }
.auth-eye { position: absolute; right: 6px; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; transform: translateY(-50%);
    border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.auth-eye:hover { color: var(--ink); background: var(--cream-2); }
.auth-card .otp-input { text-align: center; font-family: var(--head); font-size: 26px !important; letter-spacing: .5em; }
.login-options-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 24px; font-size: 14px; }
.remember-me-label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-2); cursor: pointer; }
.remember-me-label input { width: 18px; height: 18px; accent-color: var(--teal); }
.login-link { color: var(--teal-d); font-weight: 600; }
.login-link:hover { color: var(--coral-d); }
.auth-card .btn-block { width: 100%; }
.auth-card .btn-primary, .auth-submit { min-height: 56px; background: var(--coral); color: #fff; font-size: 15.5px; box-shadow: 0 12px 26px -10px rgba(var(--coral-rgb), .85); }
.auth-card .btn-primary:hover, .auth-submit:hover { background: var(--coral-d); }
.auth-card .btn-secondary { min-height: 52px; margin-top: 10px; background: transparent; color: var(--ink); border-color: var(--line-2); }
.auth-card .btn-secondary:hover { border-color: var(--ink); }
.auth-card .success, .auth-card .error, .auth-card .info-banner { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.auth-card .success { background: #e3f4ee; color: #12523f; }
.auth-card .error { background: #fbe6e3; color: #7d2a20; }
.auth-card .error a, .auth-card .success a { color: inherit; font-weight: 600; }
.auth-card .info-banner { margin: 20px 0 0; background: #fdf0dc; color: #7a4b0b; }
.auth-card .success i, .auth-card .error i, .auth-card .info-banner i { margin-top: 3px; }
.oauth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--muted); font-size: 13px; }
.oauth-divider hr { flex: 1; height: 1px; margin: 0; border: 0; background: var(--line); }
.google-oauth-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; border: 1.5px solid var(--line-2); border-radius: 999px;
    background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .25s, transform .25s var(--ease); }
.google-oauth-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.auth-signup { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.resend-section { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.timer, .resend-countdown { font-weight: 600; color: var(--ink); }
.initially-hidden { display: none; }
.auth-back { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.auth-back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-weight: 500; }
.auth-back a:hover { color: var(--teal-d); }
.auth-help { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: var(--cream); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.auth-help > i { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #def3e6; color: #1c9a52; font-size: 18px; }
.auth-help a { color: var(--teal-d); font-weight: 600; }

/* customer / staff switch */
body[data-who=customer] .only-staff, body[data-who=staff] .only-cust { display: none !important; }
.who-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 26px; padding: 5px; border-radius: 999px; background: var(--cream-2); }
.who-switch label { position: relative; cursor: pointer; }
.who-switch input { position: absolute; opacity: 0; pointer-events: none; }
.who-switch span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 600;
    transition: background .25s, color .25s, box-shadow .25s; }
.who-switch label:hover span { color: var(--ink); }
.who-switch input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 4px 14px -4px rgba(11, 21, 51, .2); }
.who-switch input:checked + span i { color: var(--coral); }
.who-switch input:focus-visible + span { outline: 3px solid rgba(var(--coral-rgb), .55); outline-offset: 2px; }

/* the footer sits right under the hero */
.web-auth .foot { border-top: 0; }

@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
    .auth-visual .hero-art { display: none; }
}
@media (max-width: 960px) {
    .web-auth .auth-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 108px var(--pad) 56px; gap: 32px; }
    .auth-visual h1 { font-size: clamp(34px, 8vw, 48px); }
    .auth-visual .facts { display: none; }
    .auth-panel { justify-content: stretch; }
    .auth-card { max-width: none; }
}
@media (max-width: 600px) {
    .web-auth .auth-shell { padding: 100px 14px 40px; border-radius: 0 0 28px 28px; }
    .auth-visual { padding: 0 6px; }
    .auth-visual .lead { margin-top: 14px; font-size: 15.5px; }
    .auth-card { border-radius: 26px; padding: 26px 20px; }
}
