/* Self-contained stylesheet for cake-pos/login.php ONLY -- the login
   page no longer loads the register/app CSS (pos.css), so nothing here
   can leak into or depend on the logged-in POS UI. Same design language
   as cake-admin/css/admin-login-v2.css, with the amber accent leading
   since this is the counter-facing app. */

:root {
    --navy: #14213d;
    --navy-2: #1f2f5c;
    --navy-deep: #0d1730;
    --amber: #fca311;
    --ink: #1a1a2e;
    --muted: #5b6472;
    --line: #e8eaf0;
    --bg-soft: #f6f7fb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(900px 460px at 85% -5%, rgba(252,163,17,0.16), transparent 60%),
        radial-gradient(760px 420px at 0% 100%, rgba(31,47,92,0.12), transparent 55%),
        var(--bg-soft);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 42px 40px 38px;
    box-shadow: 0 24px 70px rgba(13,23,48,0.16);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
}
.login-brand img.brand-logo {
    max-height: 64px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 10px;
}
.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber) 0%, #ff8c00 100%);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(252,163,17,0.35);
}
.login-brand h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1.25;
}
.login-brand .portal-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    padding: 4px 12px;
    border-radius: 999px;
}

label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy);
    margin: 0 0 7px;
}

input[type="text"], input[type="password"], input:not([type]) {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 18px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    transition: border-color .12s ease;
}
input:focus { outline: none; border-color: var(--navy); }
input:disabled { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }

.btn-primary {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(20,33,61,0.25);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,33,61,0.32); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.error-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    color: #b3261e;
    font-size: 13px;
    line-height: 1.45;
}

.login-foot {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}
.login-foot a { color: var(--navy); font-weight: 700; text-decoration: none; }
.login-foot a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .login-card { padding: 32px 24px 30px; border-radius: 16px; }
}
