/* Auth Page Styles */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --success-color: #28a745;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-brand-side {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(360deg); }
}

.auth-brand-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.brand-logo {
    animation: fadeInDown 1s ease-out;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.brand-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.features-list {
    display: grid;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.auth-form-side {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    animation: fadeInRight 1s ease-out;
}

.form-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
}

.role-selection {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.role-btn {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
}

.role-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.role-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.btn-check:checked + .role-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-check:checked + .role-btn i {
    color: white;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-success {
    border: 2px solid var(--success-color);
    color: var(--success-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: var(--success-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.divider {
    position: relative;
    text-align: center;
    color: #6c757d;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: calc(47% - 1rem);
    height: 1px;
    background: #dee2e6;
}

.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: calc(47% - 1rem);
    height: 1px;
    background: #dee2e6;
}

.divider span {
    padding: 0 1rem;
    font-weight: 500;
}

.demo-accounts {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.demo-card {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.demo-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.5s ease-out;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .auth-form-side {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
        backdrop-filter: blur(10px);
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .auth-form-container {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .auth-form-side {
        padding: 1rem;
    }
    
    .role-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .role-btn i {
        font-size: 1.2rem;
    }
}
