﻿/* =====================================================
   QRACK Admin Login — login.css
   Stack: ASP.NET Web Forms 4.8
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: Pretendard, sans-serif; }

/* ---- Page wrapper (replaces body flex because of <form> wrapper) ---- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 34%, #222A33 0%, #14171C 70%);
}

/* ASP.NET Panel renders as <div> — make it layout-transparent */
#PnlLogin { display: contents; }

/* ---- Card ---- */
.card {
    width: 408px;
    background: #1A1E24;
    border: 1px solid #262E38;
    border-radius: 16px;
    padding: 44px 40px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

/* ---- Brand ---- */
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 34px; }

.brand-mark {
    width: 46px; height: 46px;
    background: #FF6A1A;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand-mark > div {
    width: 27px; height: 27px;
    background: #14171C;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
}
.brand-mark > div > div {
    width: 12px; height: 12px;
    background: #FF6A1A;
    border-radius: 2px;
}

.wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -0.02em;
    color: #EDF1F6;
}
.wordmark .qr { color: #FF6A1A; }

/* ---- Title / Sub ---- */
.card h1 {
    font-family: Pretendard, sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #EDF1F6;
    margin-bottom: 6px;
}
.sub {
    font-family: Pretendard, sans-serif;
    font-size: 13px;
    color: #9BA6B4;
    margin-bottom: 28px;
}

/* ---- Error ---- */
.error-msg {
    display: block;
    color: #F2585F;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* ---- Field label ---- */
.field-label {
    display: block;
    font-size: 12px;
    color: #9BA6B4;
    margin-bottom: 7px;
}

/* ---- Input field wrapper ---- */
.field {
    height: 50px;
    background: #171B21;
    border: 1px solid #2E3742;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 16px;
    transition: border-color 0.15s, border-width 0.05s;
}
.field.pwd-wrap {
    margin-bottom: 24px;
    justify-content: space-between;
}
.field.active {
    border: 1.5px solid #FF6A1A;
    padding: 0 14px;
}

/* ---- Input inside field ---- */
.field-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #EDF1F6;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    width: 100%;
    height: 100%;
    padding: 0;
}
.field-input:focus { outline: none !important; box-shadow: none !important; }

.pwd-input {
    letter-spacing: 0.15em;
    font-size: 17px;
    min-width: 0;
    flex: 1;
}

/* ---- Password toggle ---- */
.toggle {
    font-size: 12px;
    color: #6A7585;
    cursor: pointer;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
    padding-left: 8px;
    flex-shrink: 0;
}
.toggle:hover { color: #9BA6B4; }

/* ---- Login button ---- */
.btn {
    height: 52px;
    background: #FF6A1A;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-family: Pretendard, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #14171C;
    cursor: pointer;
    transition: background 0.15s;
    display: block;
}
.btn:hover { background: #e55e10; }
.btn:active { background: #cc540e; }

/* ---- Bottom row ---- */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}
.remember > label {
    font-size: 12px;
    color: #9BA6B4;
    margin-bottom: 0;
    cursor: pointer;
}

/* ---- Custom checkbox ---- */
.remember input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #FF6A1A;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}
.remember input[type="checkbox"]:checked { background: #FF6A1A; }
.remember input[type="checkbox"]:checked::after {
    content: '\2713';
    color: #14171C;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

/* ---- Forgot password link ---- */
.link {
    font-size: 12px;
    color: #6A7585;
    text-decoration: none;
    cursor: pointer;
}
.link:hover { color: #9BA6B4; }

/* ---- Footer ---- */
.footer {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #262E38;
}
.footer img { height: 38px; opacity: 0.9; }

/* ---- ASP.NET hidden fields ---- */
.aspNetHidden { display: none; }