﻿:root {
    --bg-dark: #0b0f17;
    --card-bg: rgba(18, 24, 38, 0.78);
    --card-border: #38bdf845;
    --input-bg: rgba(10, 14, 23, 0.6);
    --input-border: rgb(200 236 255 / 29%);
    --primary-accent: #0284c7;
    --primary-glow: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

.AmbientBackground {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #090d16 100%);
}

.GlowOrb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    pointer-events: none;
}

.Glow1 {
    width: 450px;
    height: 450px;
    background: #0284c7;
    top: -100px;
    left: 10%;
}

.Glow2 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    bottom: -100px;
    right: 10%;
}

.AppViewportContainer {
    position: relative;
    z-index: 10;
    display: flex;
    width: 900px;
    max-width: 100%;
    height: 500px;
    max-height: 80vh;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.BrandSide {
    flex: 1.15;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.18) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-inline-end: 1px solid var(--card-border);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.BrandContent {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.LogoBadge {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 16px;
}

.LogoIcon {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(56, 189, 248, 1)) !important;
}

.LogoTitle {
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.HeroTextContainer {
    margin-top: 10vh;
    margin-bottom: auto;
}

.EnterpriseHeading {
    line-height: normal !important;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.2;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.EnterpriseDesc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    white-space: pre-line;
}

.SecurityPill {
    direction: ltr !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
    width: fit-content;
}

    .SecurityPill i {
        color: var(--primary-glow);
    }

.FormSide {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.MobileBrandLogo {
    display: none;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.PanelHeader {
    margin-bottom: 16px;
}

.MainHeader {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.SubHeader {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.FieldGroup {
    margin-bottom: 12px;
}

.FieldLabel {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.InputWrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.InputIcon {
    position: absolute;
    inset-inline-start: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}

.CustomInput, .CustomSelect {
    width: 100%;
    height: 42px;
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 5px !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    padding-inline-start: 46px !important;
    padding-inline-end: 16px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.CustomSelect {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 16px) center !important;
}

    .CustomSelect option {
        background-color: #0f172a;
        color: var(--text-primary);
    }

    .CustomInput:focus, .CustomSelect:focus {
        border-color: var(--primary-glow) !important;
        box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15) !important;
        background: rgba(15, 23, 42, 0.9) !important;
    }

.InputWrapper:focus-within .InputIcon {
    color: var(--primary-glow);
}

.ActionBtn {
    width: 100%;
    height: 42px;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    border: none;
}

.PrimaryBtn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

    .PrimaryBtn:hover {
        opacity: 0.95;
        box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
        transform: translateY(-1px);
    }

    .PrimaryBtn:active {
        transform: translateY(0);
    }

.ActionLinksRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.CustomLink {
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    cursor: pointer;
}

    .CustomLink:hover {
        color: var(--primary-glow);
    }

.StopFailureText {
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    margin-top: 14px;
}

.SuccessNotice {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    margin-bottom: 16px;
}

.SuccessIcon {
    font-size: 30px;
    color: #34d399;
    margin-bottom: 8px;
}

.SuccessNoticeText {
    color: #a7f3d0;
    font-size: 13px;
    line-height: 1.5;
}

.PanelFade {
    animation: fadeIn 0.3s ease-out;
}

.MobileSecurityPill {
    display: none;
    margin-top: 15px;
    margin-inline: auto;
}

/* @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }*/

.CustomSelect option {
    font-size: 15px !important;
    background: #0a1e32;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #d0f2ff inset;
    -webkit-text-fill-color: #000000;
}

.BrandHighlight {
    color: #38bdf8;
}

.LoginProgressDialog {
    padding: 16px 28px;
    width: 330px;
    border: 1px solid #38bdf86b;
    border-radius: 14px !important;
    background: #0f172a;
    box-shadow: 0px -1px 9px 3px rgb(255 255 255 / 28%);
}

#iLanguageAnchor {
    cursor: pointer;
    font-size: 170% !important;
    opacity: 0.8;
    position: absolute;
    top: 59px;
}

body[dir=ltr] #iLanguageAnchor {
    right: 32px;
}

body[dir=rtl] #iLanguageAnchor {
    left: 32px;
}

#iLanguageDiv {
    background: #295c80;
}

    #iLanguageDiv a.list-group-item.LanguageOption {
        border: 1px solid #123e5b !important;
    }

    #iLanguageDiv .list-group-item {
        background-color: #122d457d;
        color: #ffffff !important;
    }

    #iLanguageDiv .LanguageOptionActive {
        background: #002a41 !important;
    }

@media (max-width: 850px) {
    .BrandSide {
        display: none;
    }

    .MobileBrandLogo {
        display: flex;
    }

        .MobileBrandLogo .LogoIcon {
            width: 42px !important;
            height: 42px !important;
        }

        .MobileBrandLogo .LogoTitle {
            font-size: 24px !important;
        }

    .AppViewportContainer {
        max-width: 420px;
        border-radius: 20px;
        max-height: 100%;
        height: auto;
    }

    .FormSide {
        padding: 24px 20px;
        justify-content: space-between;
    }

    .PanelHeader .MainHeader {
        font-size: 15px !important;
    }

    .LoginHeader {
        display: none;
    }

    .MainHeaderEnterprise {
        display: block !important;
        font-size: 17px !important;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 15px 0;
    }

    .MobileSecurityPill {
        display: inline-flex;
        padding: 0px 8px;
    }

    body[dir=ltr] #iLanguageAnchor {
        right: 20px;
    }

    body[dir=rtl] #iLanguageAnchor {
        left: 20px;
    }

    #iLanguageAnchor {
        top: 85px;
    }
}
