.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    position: relative;
    z-index: 2;
    width: min(430px, 100%);
}

.login-card {
    padding: 28px;
}

.login-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    font-weight: 950;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.30), rgba(34, 197, 94, 0.22));
    animation: glowPulse 1.8s ease-in-out infinite alternate;
}

.login-card h1 {
    margin-top: 6px;
}

.login-card p {
    color: var(--muted);
    margin: 6px 0 22px;
}

.login-card label {
    display: block;
    margin: 14px 0 7px;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 900;
}

.login-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px;
    color: var(--text);
    outline: none;
    background: rgba(2, 6, 23, 0.40);
}

.login-card input:focus {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.login-submit {
    width: 100%;
    margin-top: 18px;
}

.login-error {
    border: 1px solid rgba(239, 68, 68, 0.36);
    background: rgba(239, 68, 68, 0.12);
    color: #ffd6d6;
    border-radius: var(--radius);
    padding: 12px;
    animation: shake 0.28s ease both;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.login-footer {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}
