/* Kohzad ICT login — colors from kohzadict.com (#0099ff / deep navy) */

:root {
    --auth-primary: #0099ff;
    --auth-primary-dark: #0077cc;
    --auth-accent: #00c8ff;
    --auth-bg: #000000;
    --auth-panel: #001020;
    --auth-panel-mid: #001428;
    --auth-field: #0a1628;
    --auth-text: #e8f4ff;
    --auth-muted: #8ba3c7;
    --auth-border: rgba(0, 153, 255, 0.18);
    --auth-danger-bg: rgba(248, 113, 113, 0.12);
    --auth-danger-text: #fca5a5;
    --auth-success-bg: rgba(74, 222, 128, 0.12);
    --auth-success-text: #86efac;
    --auth-ui: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
    --auth-radius: 18px;
    --auth-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; font-family: var(--auth-ui); }

.auth-page {
    min-height: 100vh; min-height: 100dvh; color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(0, 153, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 85%, rgba(0, 200, 255, 0.12), transparent 50%),
        linear-gradient(160deg, var(--auth-bg) 0%, var(--auth-panel) 45%, var(--auth-panel-mid) 100%);
    background-attachment: fixed;
}

.auth-shell {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; min-height: 100dvh; width: 100%; max-width: 560px;
    margin: 0 auto; padding: clamp(16px, 4vw, 32px);
}

.auth-main { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0;
    animation: auth-rise 0.45s ease-out both; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-main { animation: none; } }

.auth-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(8, 24, 40, 0.92) 0%, rgba(5, 10, 18, 0.96) 100%);
    border-radius: 22px; box-shadow: var(--auth-shadow), 0 0 0 1px var(--auth-border);
    border: 1px solid var(--auth-border);
    padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 36px) clamp(22px, 4vw, 30px);
    position: relative; overflow: hidden; backdrop-filter: blur(10px);
}
.auth-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--auth-primary-dark), var(--auth-primary), var(--auth-accent), var(--auth-primary));
}

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo-link {
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
    padding: 14px 18px; background: #fff; border-radius: 16px;
    border: 1px solid rgba(0, 153, 255, 0.2); box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.auth-logo { max-height: 96px; max-width: 220px; width: auto; height: auto; object-fit: contain; background: #fff; }
.auth-site-name { font-size: clamp(1.65rem, 4vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin: 0 0 6px; }
.auth-tagline { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--auth-accent); }
.auth-heading { font-size: clamp(1.05rem, 2.2vw, 1.2rem); font-weight: 600; color: var(--auth-muted); margin: 0; text-transform: none !important; padding: 0 !important; border: none !important; }

.auth-mode-switch { display: flex; gap: 6px; margin-bottom: 22px; padding: 4px; background: var(--auth-field); border-radius: 14px; border: 1px solid var(--auth-border); }
.auth-mode-btn, .btn_login_pin_type {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 10px; font-size: 0.92rem; font-weight: 600; color: var(--auth-muted);
    text-decoration: none; border-radius: 10px; border: none; background: transparent;
    transition: background .2s, color .2s; cursor: pointer; font-family: inherit;
}
.auth-mode-btn:hover, .btn_login_pin_type:hover { color: #fff; text-decoration: none; }
.auth-mode-btn.active_login_btn, .btn_login_pin_type.active_login_btn {
    background: rgba(0, 153, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 153, 255, 0.45);
}

.auth-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; margin-bottom: 18px; line-height: 1.45; }
.auth-alert-danger { background: var(--auth-danger-bg); color: var(--auth-danger-text); border: 1px solid rgba(248,113,113,.35); }
.auth-alert-success { background: var(--auth-success-bg); color: var(--auth-success-text); border: 1px solid rgba(74,222,128,.35); }

.auth-form { width: 100%; }
.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--auth-text); margin-bottom: 8px; }
.auth-required { color: var(--auth-accent); }
.auth-input-wrap { position: relative; }
.auth-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--auth-muted); font-size: 15px; pointer-events: none; }
.auth-input {
    width: 100%; padding: 14px 16px 14px 46px; font-size: 1.05rem; font-family: inherit;
    color: var(--auth-text); background: var(--auth-field); border: 1.5px solid var(--auth-border);
    border-radius: 12px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input:focus { outline: none; background: #0c2038; border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(0,153,255,.18); }
.auth-input::placeholder { color: #6b84a8; }
.auth-field-error { font-size: 0.85rem; color: #f87171; margin-top: 6px; }

.auth-submit, .submit_login {
    width: 100%; margin-top: 10px; padding: 16px 22px; font-size: 1.05rem; font-weight: 700; font-family: inherit;
    color: #fff; background: linear-gradient(180deg, #33bbff 0%, var(--auth-primary) 48%, var(--auth-primary-dark) 100%);
    border: none; border-radius: 14px; cursor: pointer; letter-spacing: 0.03em;
    box-shadow: 0 14px 30px rgba(0, 119, 204, 0.35); transition: filter .2s, transform .15s;
}
.auth-submit:hover, .submit_login:hover { filter: brightness(1.06); }
.auth-submit:active, .submit_login:active { transform: scale(0.99); }

.auth-forgot { text-align: center; margin-top: 16px; }
.auth-forgot a { font-size: 0.92rem; color: var(--auth-muted); text-decoration: none; }
.auth-forgot a:hover { color: var(--auth-accent); }
.auth-signup { text-align: center; margin-top: 14px; font-size: 0.9rem; }
.auth-signup a { color: var(--auth-accent); font-weight: 600; text-decoration: none; }

.auth-pin-section { margin-bottom: 14px; padding: 4px 0 8px; }
.auth-pin-label { font-size: 0.95rem; font-weight: 600; color: var(--auth-text); text-align: center; margin-bottom: 16px; }
.auth-pin-wrap .pinlogin { margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.auth-pin-wrap .pinlogin-field {
    width: 60px !important; height: 60px !important; font-size: 1.55rem !important; margin: 0 4px !important;
    border-radius: 12px !important; border: 2px solid var(--auth-border) !important;
    color: var(--auth-text) !important; background: var(--auth-field) !important;
}
.auth-pin-wrap .pinlogin-field:focus { border-color: var(--auth-primary) !important; box-shadow: 0 0 0 3px rgba(0,153,255,.2) !important; }

.auth-demo { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--auth-border); }
.auth-demo-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--auth-muted); text-align: center; margin-bottom: 12px; }
.auth-demo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.auth-demo-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
    font-size: 0.68rem; font-weight: 600; color: var(--auth-muted); background: var(--auth-field);
    border: 1px solid var(--auth-border); border-radius: 10px; text-decoration: none;
}
.auth-demo-btn i { color: var(--auth-primary); }
.auth-demo-btn:hover { background: rgba(0,153,255,.18); color: #fff; border-color: var(--auth-primary); text-decoration: none; }

.auth-footer { margin-top: 22px; text-align: center; width: 100%; }
.auth-version { display: block; font-size: 0.85rem; font-weight: 600; color: rgba(168,200,232,.65); margin-bottom: 6px; }
.auth-copyright { font-size: 0.9rem; font-weight: 500; color: rgba(184,204,232,.75); }

.auth-partner-card { margin-top: 20px; padding: 14px 12px 12px; border-radius: 14px; background: rgba(0,20,40,.55); border: 1px solid var(--auth-border); text-align: center; }
.auth-partner-logos { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.auth-partner-logo { object-fit: contain; background: #fff !important; border-radius: 12px; border: 1px solid rgba(0,153,255,.2); }
.auth-partner-logo-chief { width: 56px; height: 56px; padding: 6px; }
.auth-partner-logo-kohzad { width: 112px; height: 56px; padding: 8px 10px; }
.auth-partner-x { font-size: 1.15rem; font-weight: 800; color: var(--auth-muted); }
.auth-partner-text { margin: 0; font-size: 0.85rem; color: var(--auth-muted); }
.auth-partner-text a { color: var(--auth-accent); text-decoration: none; font-weight: 600; }

input.display_none_login { display: none !important; }
.text_center { text-align: center; }

@media (max-width: 560px) {
    .auth-shell { padding: 14px 12px 20px; align-items: flex-start; padding-top: max(14px, env(safe-area-inset-top)); }
    .auth-card { padding: 24px 16px 18px; border-radius: 16px; }
    .auth-logo { max-height: 80px; max-width: 180px; }
    .auth-demo-grid { grid-template-columns: repeat(3, 1fr); }
    .auth-mode-switch { flex-direction: column; }
    .auth-pin-wrap .pinlogin-field { width: 52px !important; height: 52px !important; font-size: 1.35rem !important; }
}
