/*
========================================
AUTH.CSS - Authentication Page Styles
========================================
Login, registration, and auth-related pages.
Uses CSS variables from base.css.
*/

/* Override any conflicting styles and ensure perfect centering */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-body);
    padding: 0;
}

.auth-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    margin: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-input {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.auth-form .btn {
    width: 100%;
    box-sizing: border-box;
}

.auth-form .form-group {
    margin-bottom: 0;
}

/* Logo centered and inverted for dark background */
.auth-logo {
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

/* Error message box for form and non-field errors */
.auth-error-box {
    border: 1px solid var(--color-danger);
    background-color: rgba(239, 68, 68, 0.1);
}
