:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.35);
    --accent: #06b6d4;
    --accent-emerald: #10b981;
    --dark-navy: #0b1120;
    --card-dark: #131d33;
    --border-dark: rgba(255, 255, 255, 0.08);
    --text-muted-dark: #94a3b8;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
    --radius-lg: 1.25rem;
    --radius-md: 0.875rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: #0b1120;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95) 0%, #070b14 100%);
    background-attachment: fixed;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Background animated subtle glow shapes */
.login-glow-1 {
    position: absolute;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
    top: -10rem;
    left: -10rem;
    pointer-events: none;
    filter: blur(40px);
}

.login-glow-2 {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    bottom: -8rem;
    right: -8rem;
    pointer-events: none;
    filter: blur(40px);
}

/* Brand Showcase Side */
.brand-showcase {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-badge .pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.brand-headline {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-description {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Feature cards in showcase */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}

.feature-pill:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateX(4px);
}

.feature-icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-blue { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.icon-cyan { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.icon-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.feature-title {
    font-size: 0.925rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
}

.feature-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* Status widget */
.event-stat-box {
    margin-top: 2rem;
    padding: 1.1rem 1.35rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Login Card Form */
.login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981);
}

.card-header-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    margin-bottom: 1.25rem;
}

.form-floating > .form-control {
    height: 3.65rem;
    padding-left: 3rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-floating > label {
    padding-left: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-floating > .form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.input-icon-adornment {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    z-index: 5;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-floating:focus-within .input-icon-adornment {
    color: var(--primary);
}

.password-group {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-toggle-password:hover {
    color: var(--primary);
    background-color: #f1f5f9;
}

.btn-login-submit {
    height: 3.35rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px -3px var(--primary-glow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -3px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.btn-login-submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px -2px var(--primary-glow);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.login-security-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-account-box {
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 0.75rem 1rem;
}

/* Alert modifications */
.alert-custom {
    border-radius: 0.75rem;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    padding: 0.85rem 1.15rem;
}

.alert-custom-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-custom-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

/* Responsiveness */
@media (max-width: 991.98px) {
    .login-wrapper {
        padding: 1.5rem 0.75rem;
    }
    .brand-headline {
        font-size: 1.85rem;
    }
}
