/* ═══════════════════════════════════════════════
   GHMS Staff Login — Standalone Page
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@400;500;600&display=swap');

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

html {
    height: 100%;
    background: #0E1F2B;
}

body {
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(158,99,50,.18) 0%, transparent 55%),
        linear-gradient(150deg, #0E1F2B 0%, #1C2B3A 55%, #162820 100%);
}

/* ── Full-page centering ── */
.gls-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

/* ── Card ── */
.gls-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0,0,0,.06),
        0 8px 24px rgba(0,0,0,.18),
        0 32px 64px rgba(0,0,0,.28);
}

/* ── Header ── */
.gls-head {
    padding: 2.5rem 2.25rem 2rem;
    background: #1C2B3A;
    text-align: center;
    border-bottom: 3px solid #9E6332;
}
.gls-head-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(158,99,50,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #B87A4A;
}
.gls-head h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: .3rem;
    letter-spacing: -.01em;
    line-height: 1.2;
}
.gls-head p {
    font-size: .78rem;
    color: rgba(255,255,255,.42);
    letter-spacing: .02em;
}

/* ── Form body ── */
.gls-body {
    padding: 2rem 2.25rem 2.25rem;
}

/* Form group */
.gls-group {
    margin-bottom: 1.1rem;
}
.gls-group label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7A8E96;
    margin-bottom: .4rem;
}
.gls-group input {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid #D6D0C8;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: #1C2B3A;
    background: #FDFCFA;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.gls-group input:focus {
    border-color: #9E6332;
    box-shadow: 0 0 0 3px rgba(158,99,50,.12);
    background: #fff;
}
.gls-group input::placeholder { color: #B0BBC2; }

/* Password wrapper */
.gls-pw-wrap {
    position: relative;
}
.gls-pw-wrap input {
    padding-right: 2.75rem;
}
.gls-toggle-pw {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #B0BBC2;
    padding: 4px;
    line-height: 1;
    transition: color .15s;
}
.gls-toggle-pw:hover { color: #9E6332; }

/* Submit button */
.gls-btn {
    width: 100%;
    padding: .95rem;
    background: #9E6332;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    margin-top: .35rem;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.gls-btn:hover {
    background: #B87A4A;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(158,99,50,.3);
}
.gls-btn:active { transform: none; box-shadow: none; }
.gls-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.gls-msg {
    margin-top: .85rem;
    padding: .7rem .9rem;
    border-radius: 7px;
    font-size: .84rem;
    text-align: center;
    min-height: 0;
    transition: all .15s;
}
.gls-msg:empty { display: none; }
.gls-msg--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.gls-msg--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* ── Footer ── */
.gls-foot {
    padding: 1rem 2.25rem 1.1rem;
    background: #F4F0E8;
    border-top: 1px solid #E8E2D6;
    text-align: center;
}
.gls-foot a {
    font-size: .82rem;
    color: #9E6332;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.gls-foot a:hover { color: #B87A4A; }

/* ── Responsive ── */
@media (max-width: 440px) {
    .gls-head  { padding: 2rem 1.5rem 1.5rem; }
    .gls-body  { padding: 1.75rem 1.5rem 2rem; }
    .gls-foot  { padding: .9rem 1.5rem 1rem; }
}
