/* =============================================================
   Login Page Styles - Sistem Poin Pelanggaran Siswa
   ============================================================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Branding Side */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    color: white;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.login-branding::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.branding-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.brand-icon i {
    font-size: 2.5rem;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.feature-item i {
    font-size: 1.1rem;
    color: #a5f3fc;
}

.branding-footer {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    opacity: 0.7;
    font-size: 0.85rem;
    z-index: 1;
}

/* Form Side */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.95rem;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-group-text {
    background: var(--light);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--secondary);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:focus {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
    color: var(--primary);
}

.input-group .btn-outline-secondary {
    border: 1.5px solid var(--border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--secondary);
}

.input-group .btn-outline-secondary:hover {
    background: var(--light);
    color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3730a3 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.8;
    transform: none;
}

/* Demo Accounts */
.demo-accounts {
    padding: 1.25rem;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.demo-btn {
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.demo-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Alert */
.alert {
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .login-form-side {
        background: linear-gradient(180deg, #f8fafc 0%, white 100%);
    }
    
    .login-form-container {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .login-form-side {
        padding: 1rem;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
}

/* Dark mode support for login */
@media (prefers-color-scheme: dark) {
    /* Optional: auto dark mode - currently light by default */
}