/* ============================================================
   VIRUS PRINT - Auth Pages CSS (Login/Register/Forgot)
   Premium split-screen design with dark mode
   ============================================================ */

:root {
    --primary: #6610f2;
    --primary-dark: #5b0ed8;
    --secondary: #ec4899;
    --gradient: linear-gradient(135deg, #6610f2 0%, #ec4899 100%);
    
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    --border-hover: #475569;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.theme-toggle-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.theme-toggle-floating:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

/* ============ AUTH CONTAINER ============ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* ============ BRAND SIDE ============ */
.auth-brand {
    background: var(--gradient);
    color: white;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-bg .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: #fde68a;
    top: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: #f9a8d4;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #06b6d4;
    top: 50%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(20px); }
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 26px;
}

.brand-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    backdrop-filter: blur(10px);
}

.auth-brand h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
}

.auth-brand p {
    font-size: 17px;
    opacity: 0.95;
    margin-bottom: 30px;
}

.auth-features {
    margin: 30px 0;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
}

.auth-feature i {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.auth-testimonial {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.auth-testimonial .rating {
    font-size: 18px;
    margin-bottom: 8px;
}

.auth-testimonial p {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-testimonial small {
    opacity: 0.8;
}

/* ============ FORM SIDE ============ */
.auth-form-side {
    padding: 60px 50px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
}

.auth-form {
    width: 100%;
}

.auth-form-header {
    margin-bottom: 30px;
}

.auth-form-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-form-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 18px;
}

.form-group-modern label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    z-index: 1;
    font-size: 15px;
}

.input-group-modern .form-control {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s;
}

.input-group-modern .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(102, 16, 242, 0.1);
}

.input-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}

.checkbox-modern input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-modern a {
    color: var(--primary);
    text-decoration: none;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn-submit {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 16, 242, 0.3);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 16, 242, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    position: relative;
}

.register-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.register-link:hover {
    color: var(--primary-dark);
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.role-option {
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    text-align: center;
    padding: 14px 8px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
    background: var(--bg-input);
}

.role-card i {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.role-card strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.role-card small {
    color: var(--text-muted);
    font-size: 11px;
}

.role-option input:checked + .role-card {
    border-color: var(--primary);
    background: rgba(102, 16, 242, 0.05);
}

.role-option input:checked + .role-card i {
    color: var(--primary);
}

/* Auth Footer */
.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.back-home {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.back-home:hover {
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: none;
    font-size: 14px;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
}

[data-theme="dark"] .alert-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
[data-theme="dark"] .alert-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
[data-theme="dark"] .alert-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }

/* Responsive */
@media (max-width: 991px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-brand { padding: 40px 30px; min-height: 250px; }
    .auth-brand h1 { font-size: 32px; }
    .auth-form-side { padding: 40px 30px; }
    .auth-features, .auth-testimonial { display: none; }
}

@media (max-width: 576px) {
    .auth-form-side { padding: 30px 20px; }
    .auth-form-header h2 { font-size: 26px; }
    .role-selector { grid-template-columns: 1fr; }
}
