/* Login page. Standalone: it does not load main.css, so it carries its own
   font-face and reset. */

@import url("01-foundation/_fonts.css");
@import url("01-foundation/_motion.css");

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    /* dvh follows the mobile browser chrome; vh stays as the fallback. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #161616;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 2.5rem 2rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fafafa;
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #737373;
    text-align: center;
    margin-bottom: 2rem;
}

.login-error {
    background: #2d1215;
    border: 1px solid #7f1d1d;
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a3a3a3;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fafafa;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

/* The border marks pointer focus; keyboard focus keeps a visible ring. */
.form-group input:focus {
    border-color: #525252;
}

.form-group input:focus:not(:focus-visible) {
    outline: none;
}

.form-group input:focus-visible {
    outline: 2px solid #fafafa;
    outline-offset: 2px;
}

.form-group input::placeholder {
    color: #525252;
}

.btn-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fafafa;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: #d4d4d4;
}

.btn-submit:active {
    background: #a3a3a3;
}

.btn-submit:focus-visible {
    outline: 2px solid #fafafa;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
}
