/* Authentication Pages Styles */

:root {
    --primary-color: #4a6cf7;
    --primary-color-dark: #3a5ce5;
    --primary-color-light: #eef2ff;
    --primary-color-rgb: 74, 108, 247;

    --secondary-color: #6a49f2;

    --success-color: #28a745;
    --success-color-light: #d4edda;
    --success-color-dark: #155724;

    --danger-color: #dc3545;
    --danger-color-light: #f8d7da;
    --danger-color-dark: #721c24;

    --warning-color: #ffc107;
    --warning-color-light: #fff3cd;
    --warning-color-dark: #856404;

    --dark-gray: #343a40;
    --text-color: #495057;
    --text-muted: #6c757d;
    --light-gray: #dee2e6;
    --light-bg: #f8f9fa;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

.auth-image {
    flex: 1;
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 90%);
    background-size: cover;
    opacity: 0.8;
}

.auth-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.auth-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-logo {
    margin-bottom: 30px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.text-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.text-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

.auth-tagline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.auth-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    max-width: 350px;
}

.auth-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.auth-features li i {
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-form-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    text-align: center;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--light-gray);
}

.auth-divider::before {
    margin-right: 10px;
}

.auth-divider::after {
    margin-left: 10px;
}

.social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    background-color: white;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background-color: var(--light-bg);
    border-color: var(--text-muted);
}

.social-btn i {
    font-size: 1.2rem;
}

.social-btn.google i {
    color: #DB4437;
}

.social-btn.facebook i {
    color: #4267B2;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input {
    margin-right: 10px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: var(--danger-color-light);
    color: var(--danger-color-dark);
    border: 1px solid var(--danger-color);
}

.alert-success {
    background-color: var(--success-color-light);
    color: var(--success-color-dark);
    border: 1px solid var(--success-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        max-width: 600px;
    }
    
    .auth-image {
        padding: 30px;
    }
    
    .auth-form-container {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 20px;
    }
    
    .auth-image {
        padding: 20px;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .auth-tagline {
        font-size: 1.5rem;
    }
    
    .auth-description {
        font-size: 1rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}