/* auth.css - Fixed for black text on white/light backgrounds + dark theme compatibility */

.auth-container {
    min-height: calc(100vh - 120px);  /* Adjust if your header height changes */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #181818;        /* Matches your app's dark background */
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff !important;   /* Pure white card for strong contrast */
    padding: 2.8rem 2.2rem;
    border-radius: 24px;
    border: 1px solid #e0e0e0;        /* Light border instead of var(--border) */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    color: #000000 !important;        /* Force black text inside the card */
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 0.6rem;
    font-size: 2.1rem;
    font-weight: 600;
    color: #000000 !important;
}

.auth-card p {
    color: #444444 !important;        /* Dark gray instead of muted */
    margin-bottom: 2.2rem;
    font-size: 1.05rem;
}

/* Form inputs - black text on white/light bg */
.auth-card input {
    width: 100%;
    padding: 0.95rem 1.1rem;
    margin-bottom: 1.4rem;
    border-radius: 12px;
    border: 1px solid #cccccc;
    font-size: 1rem;
    background-color: #ffffff !important;
    color: #000000 !important;        /* Black text when typing */
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
    border-color: #ff0000;             /* YouTube red on focus */
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.auth-card input::placeholder {
    color: #777777 !important;         /* Dark gray placeholder - very readable */
}

/* Submit button - YouTube red style */
.auth-card button {
    width: 100%;
    margin-top: 0.8rem;
    padding: 1rem;
    background-color: #ff0000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-card button:hover {
    background-color: #cc0000 !important;
}

/* Footer link */
.auth-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.95rem;
    color: #444444 !important;
}

.auth-footer a {
    color: #ff0000 !important;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Flash messages */
.flash {
    background: rgba(255, 0, 0, 0.08);   /* Soft red tint for errors */
    color: #c62828 !important;           /* Red text for visibility */
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border-left: 4px solid #ff0000;
}

/* Optional: Add labels for better accessibility & readability */
.form-group {
    margin-bottom: 1.6rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000000 !important;
    font-size: 0.95rem;
}