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

body {
    font-family: 'SF Mono', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    background: #fafaf9;
    color: #1c1917;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.875rem;
    color: #78716c;
}

.login-box {
    background: white;
    border: 1px solid #e7e5e4;
    padding: 2rem;
}

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

    .form-group label {
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #57534e;
        margin-bottom: 0.5rem;
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem;
        font-family: inherit;
        font-size: 0.875rem;
        border: 1px solid #e7e5e4;
        background: white;
    }

        .form-group input:focus {
            outline: none;
            border-color: #1c1917;
        }

.btn {
    width: 100%;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #1c1917;
    background: #1c1917;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .btn:hover {
        background: #292524;
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

    .error-message.show {
        display: block;
    }

.success-message {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

    .success-message.show {
        display: block;
    }

.info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.loading {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #e7e5e4;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-links {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8125rem;
}

    .form-links a {
        color: #1c1917;
        text-decoration: none;
        font-weight: 500;
    }

        .form-links a:hover {
            text-decoration: underline;
        }

.link-separator {
    color: #d6d3d1;
    margin: 0 0.5rem;
}

.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #78716c;
}

    .footer a {
        color: #1c1917;
    }
