/* ============================================================
   EasyGas — admin login page
   resources/views/vendor/voyager/login.blade.php (+ auth/master)

   Self-contained. The login screen does NOT load Voyager's
   app.css — every visual rule that applies here lives below.
   ============================================================ */

* { box-sizing: border-box; }

html, body { height: 100%; }

body.login-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2933;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(64, 150, 238, .25), transparent 60%),
        radial-gradient(900px 600px at 0% 110%, rgba(64, 150, 238, .14), transparent 55%),
        linear-gradient(180deg, #1f2933 0%, #0f1922 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Card ─────────────────────────────────────────────────── */
.login-shell {
    width: 100%;
    max-width: 400px;
    animation: loginIn .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes loginIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow:
        0 32px 64px -24px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(255, 255, 255, .04);
}

/* ── Brand row — full EasyGas wordmark, no separate text label ── */
.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.login-wordmark {
    height: 38px;
    width: auto;
    display: block;
}

/* ── Headings ─────────────────────────────────────────────── */
.login-heading {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #0f1922;
    letter-spacing: -0.2px;
}
.login-subtitle {
    margin: 0 0 22px;
    color: #6b7785;
    font-size: 14px;
    line-height: 1.4;
}

/* ── Error banner ─────────────────────────────────────────── */
.login-error {
    border-radius: 10px;
    background: #fdecea;
    border: 1px solid rgba(192, 57, 43, .18);
    color: #8e2620;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}
.login-error ul { margin: 0; padding-left: 18px; }
.login-error li + li { margin-top: 4px; }

/* ── Form ─────────────────────────────────────────────────── */
.login-form { display: flex; flex-direction: column; gap: 14px; }

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

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #3b4754;
    letter-spacing: 0.2px;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: #1f2933;
    background: #ffffff;
    border: 1px solid #d8dde3;
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
}
.field input:focus {
    border-color: #4096ee;
    box-shadow: 0 0 0 3px rgba(64, 150, 238, .15);
    outline: 0;
}
.field input::placeholder { color: #aab2bd; }

/* Password input + show/hide toggle */
.field-with-toggle {
    position: relative;
    display: block;
}
.field-with-toggle input { padding-right: 44px; }

.pwd-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 8px;
    color: #8b96a3;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .12s ease, background-color .12s ease;
}
.pwd-toggle:hover { color: #1f2933; background: #f4f7fb; }
.pwd-toggle:focus-visible {
    outline: 2px solid #4096ee;
    outline-offset: 1px;
    color: #1f2933;
}
/* Only one icon (eye / eye-slash) is rendered at a time. The `hidden`
   HTML attribute on inline SVG isn't honored consistently across
   browsers; toggling a class is reliable. */
.pwd-toggle .pwd-icon.is-hidden { display: none; }

/* ── Remember-me ──────────────────────────────────────────── */
.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3b4754;
    cursor: pointer;
    user-select: none;
    margin-top: 2px;
}
.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4096ee;
    cursor: pointer;
}

/* ── Submit ───────────────────────────────────────────────── */
.login-submit {
    margin-top: 8px;
    padding: 12px 16px;
    background: #1f2933;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background-color .12s ease, transform .12s ease;
}
.login-submit:hover { background: #0f1922; }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: 0.7; cursor: wait; }
.login-submit .hidden { display: none; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .login-card { padding: 28px 22px 22px; border-radius: 14px; }
    .login-heading { font-size: 22px; }
}
