/*
 * Ranker - Authentication Styles
 * Styles for login and registration pages.
 */

:root {
    --auth-background: #f5f5f7;
    --auth-form-background: #ffffff;
    --auth-primary-text: #1d1d1f;
    --auth-secondary-text: #515154;
    --auth-accent-color: #007aff;
    --auth-border-color: #e5e5e5;
    --auth-error-color: #d93025;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--auth-background);
}

.auth-form {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--auth-form-background);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.auth-form h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--auth-primary-text);
}

.auth-form .form-description {
    color: var(--auth-secondary-text);
    margin-bottom: 2rem;
}

.auth-form .input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--auth-primary-text);
    font-size: 0.9rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--auth-border-color);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--auth-accent-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--auth-accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.auth-form .btn:hover {
    background: #0056b3;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--auth-secondary-text);
}

.auth-switch a {
    color: var(--auth-accent-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: rgba(217, 48, 37, 0.1);
    color: var(--auth-error-color);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(217, 48, 37, 0.2);
    text-align: center;
}
