/* ==========================================================================
   V-GUARD THRIVERA - MODERN RESPONSIVE LOGIN STYLES
   ========================================================================== */

:root {
    --brand-primary: #1845ad;
    --brand-primary-hover: #123790;
    --brand-dark: #070d1e;
    --brand-navy-900: #0a1329;
    --brand-navy-800: #0f1f44;
    --brand-accent: #23a2f6;
    --brand-accent-glow: rgba(35, 162, 246, 0.4);
    --brand-cyan: #38bdf8;
    --card-surface: #ffffff;
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-focus: #1845ad;
    --input-focus-ring: rgba(24, 69, 173, 0.14);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 50px rgba(35, 162, 246, 0.15);
    --shadow-btn: 0 10px 25px -5px rgba(24, 69, 173, 0.45);
}

/* Base Reset & Font Settings */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   ANIMATED BACKGROUND ARCHITECTURE
   ========================================================================== */

.login-universe {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #13244e 0%, #0b142d 45%, #050a17 100%);
    overflow: hidden;
    padding: 30px 16px;
    box-sizing: border-box;
}

/* Background Particle Canvas */
.login-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* Subtle High-Tech Micro Dot Grid Texture */
.login-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
    z-index: 2;
}

/* Radiant Ambient Glowing Orbs (Hardware-Accelerated CSS Keyframes) */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.55;
    will-change: transform;
}

.orb-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(24, 69, 173, 0.8) 0%, rgba(24, 69, 173, 0) 70%);
    top: -120px;
    left: -100px;
    animation: floatOrb1 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(35, 162, 246, 0.6) 0%, rgba(35, 162, 246, 0) 70%);
    bottom: -100px;
    right: -80px;
    animation: floatOrb2 24s ease-in-out infinite alternate;
}

.orb-3 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb3 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(80px, 60px, 0) scale(1.12); }
    100% { transform: translate3d(-40px, 100px, 0) scale(0.95); }
}

@keyframes floatOrb2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-70px, -80px, 0) scale(1.15); }
    100% { transform: translate3d(40px, -50px, 0) scale(0.92); }
}

@keyframes floatOrb3 {
    0% { transform: translate3d(-50%, -50%, 0) scale(0.9); opacity: 0.35; }
    50% { transform: translate3d(-40%, -60%, 0) scale(1.2); opacity: 0.6; }
    100% { transform: translate3d(-60%, -40%, 0) scale(1); opacity: 0.4; }
}

/* ==========================================================================
   CARD CONTAINER & SPLIT LAYOUT
   ========================================================================== */

.login-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 860px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    animation: loginFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginFadeIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-glass-card {
    display: flex;
    width: 100%;
    background: rgba(10, 20, 48, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

/* Subtle Top Card Glow Highlight */
.login-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(35, 162, 246, 0.8), rgba(255, 255, 255, 0.95), rgba(35, 162, 246, 0.8), transparent);
    z-index: 12;
}

/* ==========================================================================
   LEFT PANEL - BRANDING & ENTERPRISE HIGHLIGHTS (COMPACT)
   ========================================================================== */

.login-brand-panel {
    width: 44%;
    padding: 28px 26px;
    background: linear-gradient(155deg, rgba(24, 69, 173, 0.45) 0%, rgba(7, 13, 30, 0.78) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: #ffffff;
    box-sizing: border-box;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    background: rgba(35, 162, 246, 0.15);
    border: 1px solid rgba(35, 162, 246, 0.35);
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--brand-cyan);
    margin-bottom: 12px;
    width: fit-content;
    box-shadow: 0 0 12px rgba(35, 162, 246, 0.18);
}

.brand-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-cyan);
    border-radius: 50%;
    box-shadow: 0 0 7px var(--brand-cyan);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 10px var(--brand-cyan); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.brand-logo-wrap {
    margin-bottom: 12px;
}

.brand-main-logo {
    max-height: 38px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.08) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.brand-hero-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 35%, #a5c9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-hero-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* Feature Badges List */
.brand-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}

.brand-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.brand-feature-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(35, 162, 246, 0.35);
    transform: translateX(3px);
}

.feature-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(35, 162, 246, 0.25), rgba(24, 69, 173, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    font-size: 12px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
}

/* Bottom Brand Trust Tag */
.brand-footer-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}

.brand-footer-trust i {
    color: #38bdf8;
    font-size: 12px;
}

/* ==========================================================================
   RIGHT PANEL - ELEVATED CRISP LIGHT GLASS
   ========================================================================== */

.login-form-panel {
    width: 56%;
    padding: 28px 36px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 254, 0.96) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.form-header {
    margin-bottom: 16px;
}

.form-header-meta {
    display: flex;
    align-items: center;
    gap: 13px;
}

.form-emblem-badge {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(24, 69, 173, 0.08) 0%, rgba(35, 162, 246, 0.18) 100%);
    border: 1px solid rgba(35, 162, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(24, 69, 173, 0.08);
}

.form-title-group {
    display: flex;
    flex-direction: column;
}

.mobile-brand-logo {
    display: none;
    max-height: 34px;
    margin-bottom: 12px;
    object-fit: contain;
}

.form-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.form-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 3px 0 0 0;
    font-weight: 400;
}

/* Form Group & Input Controls */
.vg-form-group {
    margin-bottom: 13px;
    position: relative;
}

.vg-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}

.vg-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.vg-input-wrapper:hover {
    border-color: #cbd5e1;
}

.vg-input-wrapper:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(24, 69, 173, 0.12), 0 2px 6px rgba(24, 69, 173, 0.04);
}

.vg-input-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--transition);
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
}

.vg-input-wrapper:focus-within .vg-input-chip {
    color: var(--brand-primary);
    background: #eff6ff;
    border-right-color: #dbeafe;
}

.vg-input {
    width: 100% !important;
    height: 42px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 14px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    font-family: 'Poppins', sans-serif !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.vg-input::placeholder {
    color: #94a3b8 !important;
    font-size: 13px;
    letter-spacing: 0;
}

/* Password Toggle Eye Button */
.toggle-password-btn {
    position: absolute;
    right: 8px;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer;
    padding: 6px 9px !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition);
    z-index: 3;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

.toggle-password-btn:hover {
    color: var(--brand-primary) !important;
    background-color: rgba(24, 69, 173, 0.08) !important;
}

/* Validation Message */
.field-validation-error,
.text-danger {
    font-size: 11.5px;
    font-weight: 500;
    color: #ef4444 !important;
    margin-top: 4px;
    display: block;
}

/* Remember Me & Forgot Password Row */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 15px 0;
}

.custom-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.custom-checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-primary);
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
}

.checkbox-label {
    font-size: 12.5px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--brand-accent);
    text-decoration: underline;
}

/* Back to Sign In Link & Row */
.back-to-login-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
}

.back-to-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.back-to-login-link:hover {
    color: var(--brand-accent);
    background-color: rgba(24, 69, 173, 0.05);
    transform: translateX(-2px);
    text-decoration: none;
}

.back-to-login-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.back-to-login-link:hover i {
    transform: translateX(-3px);
}

/* Primary Submit Button */
.vg-btn-submit {
    width: 100% !important;
    height: 42px !important;
    background: linear-gradient(135deg, #1845ad 0%, #1e56d4 50%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    box-shadow: 0 6px 18px -4px rgba(24, 69, 173, 0.45) !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
    margin-top: 4px !important;
}

.vg-btn-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(25deg);
    transition: 0.75s ease-in-out;
}

.vg-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -5px rgba(24, 69, 173, 0.5) !important;
    background: linear-gradient(135deg, var(--brand-primary-hover) 0%, #1748b8 100%) !important;
}

.vg-btn-submit:hover::after {
    left: 120%;
}

.vg-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px -3px rgba(24, 69, 173, 0.4) !important;
}

.vg-btn-submit .btn-spinner {
    display: none;
}

.vg-btn-submit.is-submitting {
    pointer-events: none;
    opacity: 0.88;
}

.vg-btn-submit.is-submitting .btn-text,
.vg-btn-submit.is-submitting .btn-arrow {
    display: none;
}

.vg-btn-submit.is-submitting .btn-spinner {
    display: inline-block;
}

/* Alert Message Box */
.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 500;
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.login-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.login-alert i {
    font-size: 15px;
    flex-shrink: 0;
}

/* Footer Info & Version */
.form-footer-meta {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.version-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.copyright-text {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

/* Tablets and Below (<= 991px) */
@media (max-width: 991px) {
    .login-universe {
        padding: 24px 16px;
    }

    .login-card-container {
        max-width: 480px;
    }

    .login-glass-card {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .login-brand-panel {
        width: 100%;
        padding: 36px 30px 26px 30px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        align-items: center;
    }

    .brand-badge {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 16px;
    }

    .brand-hero-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .brand-hero-desc {
        font-size: 13px;
        margin-bottom: 0;
    }

    /* Hide feature list on tablets/mobiles for ultra-clean compact login */
    .brand-features,
    .brand-footer-trust {
        display: none;
    }

    .login-form-panel {
        width: 100%;
        padding: 28px 24px;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .form-title {
        font-size: 20px;
    }
}

/* Small Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .login-universe {
        padding: 14px 10px;
    }

    .login-brand-panel {
        padding: 24px 18px 18px 18px;
    }

    .brand-main-logo {
        max-height: 36px;
    }

    .brand-hero-title {
        font-size: 18px;
    }

    .login-form-panel {
        padding: 22px 18px;
    }

    .form-emblem-badge {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .form-title {
        font-size: 19px;
    }

    .form-subtitle {
        font-size: 12px;
    }

    .form-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forgot-link {
        align-self: flex-start;
    }

    .ambient-orb {
        filter: blur(60px);
        opacity: 0.4;
    }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ambient-orb,
    .brand-badge .pulse-dot,
    .login-card-container {
        animation: none !important;
    }
    .vg-btn-submit::after {
        display: none !important;
    }
}

/* ==========================================================================
   LEGACY STYLES PRESERVATION
   (Ensures backward compatibility for DeactivateMyAccount.cshtml & other views)
   ========================================================================== */

.background {
    width: 430px;
    height: 520px;
    position: absolute;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
}

.background .shape-lg {
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
}

.shape-lg:first-child {
    background: linear-gradient(var(--btnbg, #1845ad), var(--bglight, #23a2f6));
    left: -80px;
    top: -80px;
}

.shape-lg:last-child {
    background: linear-gradient(to right, var(--lightredshed, #23a2f6), var(--darkredshed, #1845ad));
    right: -30px;
    bottom: -80px;
}

.form-lg {
    height: 580px;
    width: 400px;
    background-color: rgba(255,255,255,0.13);
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px rgba(8,7,16,0.6);
    padding: 10px 30px 50px 30px;
}

.form-lg * {
    font-family: 'Poppins', sans-serif;
    color: #888;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

.form-lg h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
}

@media (max-width: 1000px) and (min-width:200px) {
    .form-lg {
        height: auto;
        width: 90%;
        margin-left: 5%;
        margin-top: 2%;
        position: static;
        transform: none;
        backdrop-filter: none;
    }

    .background {
        width: 90%;
        z-index: -1;
    }

    .shape-lg {
        display: none;
    }
}
.app-img {
    padding: 0px;
    margin: 0px;
}

