/* auth.css — Frosted glass splash overlay */

/* === OVERLAY === */
#auth-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 28, 36, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#auth-gate.hidden {
    display: none;
}

/* === LOGIN CARD === */
.auth-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
}

.auth-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(26, 188, 156, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    color: #1abc9c;
    font-size: 1.15rem;
}

.auth-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d2a35;
    margin: 0 0 0.2rem;
    padding-bottom: 0;
}

.auth-card h2:after {
    display: none;
}

.auth-card .auth-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d2a35;
    margin: 0 0 0.2rem;
}

.auth-card .auth-subtitle {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 1.75rem;
    letter-spacing: 0.01em;
}

.auth-card label {
    display: block;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

#auth-password {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid #e2e6ea;
    border-radius: 7px;
    font-size: 0.95rem;
    color: #1d2a35;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fafbfc;
    box-sizing: border-box;
}

#auth-password:focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.12);
    background: #fff;
}

.auth-error {
    font-size: 0.8rem;
    color: #e74c3c;
    min-height: 1.1em;
    margin-top: 0.45rem;
    text-align: left;
}

#auth-submit {
    width: 100%;
    padding: 0.65rem;
    background: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    letter-spacing: 0.02em;
    margin-top: 0.85rem;
}

#auth-submit:hover {
    background: #16a085;
    transform: translateY(-1px);
}

#auth-submit:active {
    transform: translateY(0);
}

/* === PROTECTED CONTENT — not rendered until authenticated === */
#protected-content.hidden {
    display: none;
}

/* === RESPONSIVE === */
@media (max-width: 440px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}
