/* BTNC ACC — Login (Dark Premium theme — เข้าชุดกับ Direction A) */

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at 80% -100px, rgba(16, 185, 129, 0.10), transparent 65%),
        radial-gradient(700px 400px at -100px 100%, rgba(16, 185, 129, 0.06), transparent 60%),
        var(--bg-0);
    color: var(--fg-1);
    font-family: var(--font-th);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ─── Card ─────────────────────────────────────────────── */
.btnc-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    padding: 32px 32px 28px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--line-2),
        0 0 60px rgba(16, 185, 129, 0.06);
    position: relative;
    overflow: hidden;
}

/* Subtle accent glow at the top */
.btnc-login-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
}

/* ─── Brand header ─────────────────────────────────────── */
.btnc-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.btnc-login-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--fg-0);
    letter-spacing: -0.01em;
}

.btnc-login-brand-sub {
    font-size: 12px;
    color: var(--fg-3);
    letter-spacing: 0.02em;
}

/* ─── Title ────────────────────────────────────────────── */
.btnc-login-title {
    text-align: center;
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--fg-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ─── Alert ────────────────────────────────────────────── */
.btnc-login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: var(--r-md);
    color: #fda4af;
    font-size: 12.5px;
    margin-bottom: 18px;
}

.btnc-login-alert-icon { color: #fb7185; flex-shrink: 0; }

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

.btnc-field-label {
    display: block;
    font-size: 12px;
    color: var(--fg-2);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.btnc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.btnc-input-wrap:focus-within {
    border-color: var(--acc-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btnc-input-icon {
    color: var(--fg-3);
    margin-left: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.btnc-input-wrap:focus-within .btnc-input-icon { color: var(--acc-400); }

.btnc-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    color: var(--fg-0);
    font-family: inherit;
    font-size: 14px;
}

.btnc-input::placeholder { color: var(--fg-4); }

/* ─── Override Chrome / Edge autofill (พื้นหลังฟ้าอ่อน + ตัวอักษรดำ) ──
 * Chrome ใส่ background-color: rgb(232,240,254) + color: #000 อัตโนมัติ
 * แก้ไม่ได้ด้วย background-color/color → ใช้ box-shadow inset + -webkit-text-fill-color
 * Note: ใช้ literal color (#11141a, #f5f7fa) ไม่ใช้ CSS variable เพราะบาง browser
 *       resolve CSS var ใน -webkit-* properties ไม่ได้
 */
input.btnc-input:-webkit-autofill,
input.btnc-input:-webkit-autofill:hover,
input.btnc-input:-webkit-autofill:focus,
input.btnc-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #11141a inset !important;
    box-shadow: 0 0 0 1000px #11141a inset !important;
    -webkit-text-fill-color: #f5f7fa !important;
    caret-color: #f5f7fa !important;
    color: #f5f7fa !important;
    transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

/* ─── Submit button ────────────────────────────────────── */
.btnc-login-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #22c55e, #16a34a);
    border: 1px solid #15803d;
    border-radius: var(--r-md);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.05s, box-shadow 0.15s;
    box-shadow:
        0 8px 20px rgba(34, 197, 94, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btnc-login-btn:hover { background: linear-gradient(180deg, #16a34a, #15803d); }
.btnc-login-btn:active { transform: translateY(1px); }

/* ─── Footer hint ──────────────────────────────────────── */
.btnc-login-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 11.5px;
    color: var(--fg-4);
    letter-spacing: 0.04em;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
    .btnc-login-card { padding: 24px 20px 20px; border-radius: var(--r-lg); }
}
