/*
 * SEO by FuelitOnline (FIO) - Authentication Styles
 * Specific styles for login and signup pages
 */

/* CSS Variables */
:root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --light: #f7fafc;
    --white: #ffffff;
    --dark: #1a202c;
    --medium: #718096;
    --primary: #3498db;
    --primary-dark: #2c81ba;
    --success: #38a169;
    --error: #e53e3e;
}

/* Auth Pages Container */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background-color: var(--light);
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% auto;
}

.auth-form-container {
    padding: 1.5rem;
}

.auth-form {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--light);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-control.valid {
    border-color: var(--success);
}

.form-control.invalid {
    border-color: var(--error);
}

.input-error {
    display: none;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.password-field-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--medium);
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 0.25rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--dark);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #f58716;
    text-decoration: none;
}

.auth-submit {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit:hover {
    background-color: #f58716;
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--medium);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--light);
}

.auth-divider::before {
    margin-right: 1rem;
}

.auth-divider::after {
    margin-left: 1rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--medium);
}

.auth-footer a {
    color: #f58716;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #f58716;
    text-decoration: none;
}

.terms-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--medium);
    margin-top: 1rem;
}

.terms-text a {
    color: #f58716;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: #f58716;
}

/* Responsive Media Queries */
@media (max-width: 576px) {
    .auth-page {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-link {
        margin-top: 0.25rem;
    }
}