/**
 * REScout - Authentication Page Styles
 * Styles for login, register, reset password, and forgot password pages
 */

/* ==========================================================================
   Auth Layout
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: var(--space-lg);
}

.auth-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
    width: 100%;
    max-width: 450px;
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.auth-logo h1 {
    color: var(--color-reddit);
    font-size: var(--font-xxl);
    margin: 0;
}

.auth-title {
    text-align: center;
    font-size: var(--font-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.auth-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Auth Forms
   ========================================================================== */
.auth-form {
    margin-bottom: var(--space-lg);
}

.auth-form .form-group:last-of-type {
    margin-bottom: var(--space-lg);
}

.auth-submit {
    width: 100%;
}

/* ==========================================================================
   Auth Links
   ========================================================================== */
.auth-links {
    text-align: center;
    margin-top: var(--space-md);
}

.auth-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: opacity var(--transition-fast);
}

.auth-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: var(--space-lg) 0;
    color: var(--color-text-light);
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--color-border);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* ==========================================================================
   Password Toggle
   ========================================================================== */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: var(--font-md);
    padding: 4px;
}

.password-toggle:hover {
    color: var(--color-text);
}

/* ==========================================================================
   Auth Messages
   ========================================================================== */
.auth-message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
