/* SPOS Auth — Light indigo theme (matches admin) */
:root {
    --auth-page-bg: #f8fafc;
    --auth-card-bg: #ffffff;
    --auth-card-border: #e8ecf4;
    --auth-primary: #4f46e5;
    --auth-primary-hover: #4338ca;
    --auth-accent: #6366f1;
    --auth-text: #1e293b;
    --auth-text-muted: #64748b;
    --auth-header-bg: #1e293b;
    --auth-danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page,
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(160deg, #eef2ff 0%, var(--auth-page-bg) 45%, #f1f5f9 100%) !important;
    color: var(--auth-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.container span,
.brand {
    color: var(--auth-primary) !important;
    font-weight: bold;
}

.login-box {
    background: var(--auth-card-bg) !important;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    border: 1px solid var(--auth-card-border);
    box-shadow: 0 10px 40px rgba(65, 76, 168, 0.12);
    text-align: center;
}

.login-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--auth-text);
}

.input-box {
    position: relative;
    margin: 0.85rem 0;
}

.input-box input {
    width: 100%;
    padding: 0.75rem 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--auth-text);
}

.input-box input:focus,
.passcode:focus {
    border-color: var(--auth-primary);
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(79, 70, 229, 0.2);
}

.input-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin: 0.65rem 0;
    color: var(--auth-text-muted);
}

.remember-me input {
    margin-right: 0.5rem;
}

button[type="submit"],
button {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent)) !important;
    border: none;
    border-radius: 10px;
    color: #fff !important;
    font-size: 1.05rem;
    cursor: pointer;
    margin-top: 0.65rem;
    transition: opacity 0.2s, transform 0.15s;
}

button[type="submit"]:hover,
button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.error {
    color: var(--auth-danger);
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.passcode-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.65rem;
}

.passcode {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--auth-text);
}

.label-text {
    display: block;
    text-align: left;
    margin-top: 0.65rem;
    color: var(--auth-text-muted);
    font-size: 0.9rem;
}

.forgot-passcode,
.text-blue-600 {
    color: var(--auth-primary) !important;
    text-decoration: none;
}

.forgot-passcode:hover {
    color: var(--auth-primary-hover) !important;
}

.text-muted,
small.text-muted {
    color: var(--auth-text-muted) !important;
    font-size: 0.8rem;
    display: block;
    margin-top: 0.35rem;
    text-align: left;
}

.logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
    body { padding: 10px; }
    .login-box { width: 90%; padding: 1.25rem; }
    .passcode { width: 40px; height: 40px; }
    .logo { max-width: 60%; }
}

@media screen and (max-width: 480px) {
    .login-box h2 { font-size: 1.25rem; }
    .passcode { width: 35px; height: 35px; }
}
