.login-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(6, 182, 212, 0.12), transparent 60%),
        radial-gradient(800px 500px at 90% 90%, rgba(29, 78, 216, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.55));
    pointer-events: none;
}

.login-form {
    position: relative;
    z-index: 1;
    width: 470px;
    max-width: 100%;
    padding: 36px 34px 26px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    box-shadow:
        0 30px 80px rgba(2, 6, 23, 0.35),
        0 2px 0 rgba(255, 255, 255, 0.6) inset;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.35;
}

.login-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.login-mark img {
    width: 30px;
    height: 30px;
    -o-object-fit: contain;
       object-fit: contain;
}

.header-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.header-divider {
    color: #cbd5e1;
    font-weight: 600;
}

.login-title-sub {
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    color: #64748b;
}

.login-form .form-outline {
    margin-left: 0;
    margin-right: 0;
}

.login-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.login-form .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    padding: 10px 14px;
    font-size: 15px;
    color: #0f172a;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form .form-control:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.login-form .form-check-label {
    font-size: 13px;
    color: #475569;
}

.login-form .form-check-input {
    border-color: #cbd5e1;
}

.login-form .form-check-input:checked {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.login-form .btn-primary {
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.24);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.login-form .btn-primary:hover,
.login-form .btn-primary:focus {
    color: #ffffff;
    filter: brightness(1.05);
    box-shadow: 0 16px 30px rgba(29, 78, 216, 0.3);
}

.login-form .btn-primary:active {
    transform: translateY(1px);
}

.login-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.app-selector-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-switcher-modal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.32);
}

.app-switcher-modal .modal-header {
    align-items: flex-start;
    padding: 24px 24px 12px;
    border-bottom: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.app-switcher-modal .modal-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
}

.app-switcher-eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0891b2;
}

.app-switcher-subtitle {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.app-switcher-modal .modal-body.app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 24px 24px;
    background: #ffffff;
}

.app-list-anchor {
    text-decoration: none;
    color: inherit;
}

.app-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-list-anchor:hover .app-list-item {
    background: #ffffff;
    border-color: #a5f3fc;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.app-list-anchor.is-active .app-list-item {
    background: #f0fdfa;
    border-color: #67e8f9;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08);
}

.app-list-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.app-list-icon img {
    width: 30px;
    height: 30px;
    -o-object-fit: contain;
       object-fit: contain;
    margin: 0;
}

.app-list-copy {
    flex: 1;
    min-width: 0;
}

.app-list-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.app-list-fullname {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

.app-list-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-list-arrow {
    flex: 0 0 auto;
    font-size: 12px;
    color: #94a3b8;
}

.app-list-anchor:hover .app-list-arrow {
    color: #0891b2;
}

.app-switcher-modal .btn-close {
    margin-top: 2px;
    opacity: 0.55;
}

.app-switcher-modal .btn-close:hover {
    opacity: 0.9;
}

.app-selector-box a {
    text-decoration: none;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}

.app-selector-box a:hover {
    color: #1d4ed8;
}

.alert-danger {
    border-radius: 12px;
    font-size: 13px;
}

@media screen and (max-width: 576px) {
    .login-container {
        padding: 16px;
    }

    .login-form {
        width: 100%;
        padding: 28px 22px 22px;
        border-radius: 18px;
    }

    .login-header {
        align-items: flex-start;
    }

    .header-title {
        font-size: 14px;
    }
}
