/* Authentication Pages Styles */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px); /* Adjust for header height */
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    border: 1px solid #e5e7eb;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #ffffff;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Fix for error messages - override conflicting styles */
.auth-form .form-errors {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.auth-form .error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    /* Override conflicting styles from other CSS files */
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: left !important;
    margin-top: 0 !important;
    border: none !important;
}

.auth-form .error-message:last-child {
    margin-bottom: 0;
}

.field-errors {
    margin-top: 0.25rem;
}

.field-error {
    color: #dc2626;
    font-size: 0.8125rem;
    display: block;
}

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-full-width {
    width: 100%;
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
}

.auth-footer p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Auth Links Section */
.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8125rem;  /* Smaller font size */
    transition: color 0.2s ease-in-out;
    display: inline-block;
    margin-top: 0.75rem;
}

.forgot-password-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Back to Sign In Button */
.btn-secondary {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

.btn-secondary.btn-full-width {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
}