/* ======================================================================
   login.css
   Loaded ONLY by login.php (body.login-page). Mirrors the dashboard's own
   visual language - the same soft slate background, the same violet /
   indigo / teal accent trio used by the three module cards, the same
   pill buttons and rounded-card conventions as the rest of the app -
   so the sign-in screen reads as the front door of the same product,
   not a bolted-on separate design.
   ====================================================================== */

body.login-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* soft blurred colour wash behind the card, in the same three accent
   colours as the Item / Warehouse / Rack module cards on the dashboard -
   a quiet visual echo, not a literal copy of any dashboard element */
.login-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(480px circle at 12% 15%, rgba(109, 40, 217, 0.16), transparent 60%),
        radial-gradient(520px circle at 88% 20%, rgba(67, 56, 202, 0.14), transparent 60%),
        radial-gradient(560px circle at 50% 100%, rgba(13, 148, 136, 0.14), transparent 60%);
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 28px;
    padding: 40px 36px 32px;
    box-shadow: 0 24px 48px -12px rgba(22, 28, 45, 0.16), 0 2px 8px rgba(22, 28, 45, 0.04);
}

/* top accent bar blending the same three module colours */
.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, #6d28d9, #4338ca 50%, #0d9488);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}
.login-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1.2;
}
.login-subtitle {
    margin: 8px 0 0;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    color: #64748b;
}

.login-alert {
    margin: 0 0 18px;
    padding: 11px 14px;
    font-size: 13px;
    color: #b42318;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.login-field { margin-bottom: 18px; }
.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.login-field input {
    width: 100%;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 14px;
    color: #1f2430;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.login-field input::placeholder { color: #aeb8c4; }
.login-field input:focus {
    border-color: #4338ca;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.14);
}

.login-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a, #312e81 55%, #0d9488);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(49, 46, 129, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -8px rgba(49, 46, 129, 0.5); }
.login-btn:active { transform: translateY(0); }
.login-btn .login-arrow {
    width: 15px; height: 15px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2.4;
    stroke-linecap: round; stroke-linejoin: round;
}

.login-divider {
    margin: 26px 0 16px;
    border: 0;
    border-top: 1px solid #eef1f6;
}
.login-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #94a3b8;
}
.login-foot svg {
    width: 13px; height: 13px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

:where(.login-card a, .login-card button, .login-card input):focus-visible {
    outline: 2px solid #4338ca;
    outline-offset: 2px;
}
:where(.login-card a, .login-card button, .login-card input):focus:not(:focus-visible) {
    outline: none;
}

@media (max-width: 480px) {
    .login-card { padding: 32px 24px 26px; border-radius: 22px; }
    .login-card::before { border-radius: 22px 22px 0 0; }
}
