:root {
    --login-bg-1: #0f172a;
    --login-bg-2: #1d4ed8;
    --login-bg-3: #06b6d4;
    --login-card-bg: rgba(15, 23, 42, 0.68);
    --login-card-border: rgba(255, 255, 255, 0.18);
    --login-text: #e2e8f0;
    --login-accent: #38bdf8;
}

.modern-login-page {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #05070f, #102342, #0a4b6d);
    background-size: 240% 240%;
    animation: loginGradientShift 14s ease infinite;
    position: relative;
    overflow-x: hidden;
}

.modern-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(80, 150, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 150, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.28), transparent 48%);
    background-size: 46px 46px, 46px 46px, auto;
    pointer-events: none;
}

.modern-login-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.modern-login-card {
    width: 100%;
    max-width: 430px;
    border-radius: 16px;
    border: 1px solid var(--login-card-border);
    background: var(--login-card-bg);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 24px 24px;
}

.cyber-login-shell {
    width: 100%;
    max-width: 980px;
    position: relative;
}

.login-theme-switcher {
    position: absolute;
    top: -8px;
    right: 8px;
    z-index: 3;
}

.login-theme-switcher .btn {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    border: 1px solid rgba(203, 213, 225, 0.32);
}

.login-theme-switcher .btn:hover,
.login-theme-switcher .btn:focus {
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
}

.cyber-brand-title {
    margin: 0 0 10px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.cyber-brand-title .brand-accent {
    color: #ef4444;
    font-size: 68px;
    line-height: 1;
    font-weight: 700;
}

.cyber-brand-title .brand-subtitle {
    display: block;
    color: #e2e8f0;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 600;
}

.cyber-login-card {
    max-width: 470px;
    margin: 0 auto;
    border-radius: 18px;
    border-color: rgba(203, 213, 225, 0.35);
    background: rgba(15, 23, 42, 0.6);
}

.cyber-form-wrap {
    padding-top: 8px;
}

.cyber-login-btn {
    box-shadow: 0 0 0 1px rgba(255, 99, 132, 0.35), 0 0 18px rgba(255, 70, 120, 0.38);
    background: linear-gradient(90deg, #0f172a, #ef4444, #0f172a);
}

.cyber-login-btn:hover,
.cyber-login-btn:focus {
    background: linear-gradient(90deg, #111827, #dc2626, #111827);
}

.cyber-side-modules {
    position: absolute;
    top: 185px;
    width: 220px;
}

.cyber-side-left {
    left: 10px;
}

.cyber-side-right {
    right: 10px;
}

.cyber-module-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    padding: 10px 12px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(203, 213, 225, 0.24);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
}

.cyber-module-chip i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.cyber-module-chip span {
    font-size: 22px;
    line-height: 1;
}

.cyber-login-caption {
    margin-top: 14px;
    color: #e2e8f0;
    font-size: 16px;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);
}

.modern-login-title {
    margin: 0 0 12px;
    text-align: center;
    font-weight: 700;
    line-height: 1.35;
}

.modern-login-title a {
    color: #f8fafc;
}

.modern-login-subtitle {
    color: var(--login-text);
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.modern-login-form .form-control {
    border-radius: 10px;
    height: 46px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dbe2ea;
    transition: all 0.2s ease;
}

.modern-login-form .form-control:focus {
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

.modern-login-btn {
    border-radius: 10px;
    height: 46px;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: linear-gradient(90deg, #0284c7, #0369a1);
    border: none;
}

.modern-login-btn:hover,
.modern-login-btn:focus {
    background: linear-gradient(90deg, #0369a1, #075985);
}

.modern-login-forgot {
    margin-top: 16px;
    text-align: left;
}

.modern-login-forgot a {
    color: #e2e8f0;
    font-size: 14px;
}

@keyframes loginGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 992px) {
    .cyber-brand-title .brand-accent {
        font-size: 52px;
    }
    .cyber-brand-title .brand-subtitle {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .login-theme-switcher {
        top: -16px;
        right: 0;
    }
    .cyber-brand-title .brand-accent {
        font-size: 44px;
    }
    .cyber-brand-title .brand-subtitle {
        font-size: 26px;
    }
    .cyber-login-caption {
        font-size: 13px;
    }
}

/* ------------------------------------------------------------
   Clean enterprise theme variant
   ------------------------------------------------------------ */
.modern-login-page.theme-clean {
    background: linear-gradient(135deg, #eef2f7, #dbe7f5, #f8fafc);
}

.modern-login-page.theme-clean::before {
    background:
        radial-gradient(circle at 12% 16%, rgba(14, 165, 233, 0.14), transparent 35%),
        radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.12), transparent 33%),
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.modern-login-page.theme-clean .cyber-brand-title .brand-accent {
    color: #0f172a;
    text-shadow: none;
}

.modern-login-page.theme-clean .cyber-brand-title .brand-subtitle {
    color: #334155;
    text-shadow: none;
}

.modern-login-page.theme-clean .modern-login-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.18);
}

.modern-login-page.theme-clean .modern-login-subtitle {
    color: #334155;
}

.modern-login-page.theme-clean .modern-login-form .form-control {
    background: #fff;
    border-color: #cbd5e1;
}

.modern-login-page.theme-clean .cyber-login-btn {
    background: linear-gradient(90deg, #0284c7, #0369a1);
    box-shadow: none;
}

.modern-login-page.theme-clean .cyber-login-btn:hover,
.modern-login-page.theme-clean .cyber-login-btn:focus {
    background: linear-gradient(90deg, #0369a1, #075985);
}

.modern-login-page.theme-clean .cyber-module-chip {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(148, 163, 184, 0.35);
    color: #0f172a;
}

.modern-login-page.theme-clean .cyber-module-chip i {
    background: rgba(14, 165, 233, 0.12);
}

.modern-login-page.theme-clean .cyber-login-caption {
    color: #334155;
    text-shadow: none;
}

.modern-login-page.theme-clean .modern-login-forgot a {
    color: #0f172a;
}

.modern-login-page.theme-clean .login-theme-switcher .btn {
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.45);
}
