@import url("/assets/base.css");

:root {
    --bg-1: #edf2e8;
    --bg-2: #f9fbf7;
    --surface: #f5f8f2d9;
    --line: #b9c5b0;
    --text-main: #1f2520;
    --text-soft: #667267;
    --action: #6c8f63;
    --action-strong: #5d7e55;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    margin: 8dvh auto;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(6px);
    overflow: hidden;
    box-shadow: 0 20px 50px #8fa2862e;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid #d3dbcf;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #bfd6b5;
    color: #567a51;
    display: grid;
    place-items: center;
}

.brand-icon svg {
    width: 28px;
    height: 28px;
}

.login-header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: "Iowan Old Style", "Times New Roman", serif;
    letter-spacing: 0.2px;
}

.login-card {
    padding: 1.4rem;
}

.login-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.login-card p {
    margin: 0;
    color: var(--text-soft);
}

.login-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

#access-code {
    width: 100%;
    border: 1px solid #a6b99f;
    border-radius: 16px;
    background: #ffffffeb;
    padding: 0.85rem 0.95rem;
    font-size: 1.02rem;
    line-height: 1.35;
    outline: none;
}

#access-code:focus {
    border-color: #84a77a;
    box-shadow: 0 0 0 3px #b7d0af57;
}

#login-button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--action), var(--action-strong));
    color: #f6f8f3;
    padding: 0.75rem 0.95rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease;
}

#login-button:hover:enabled {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

#login-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.error-text {
    margin: 0;
    min-height: 1.2rem;
    color: #b24343;
    font-size: 0.93rem;
}

@media (max-width: 640px) {
    .login-shell {
        width: 100vw;
        min-height: 100dvh;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
}
