﻿/* ==============================
   ROOT / RESET
============================== */
:root {
    --text: rgba(234,240,255,.92);
    --muted: rgba(234,240,255,.70);
    --border: rgba(255,255,255,.18);
    --glass: rgba(255,255,255,.10);
    --glass-dark: rgba(0,0,0,.22);
    --shadow: 0 24px 70px rgba(0,0,0,.45);
    --accent1: #8fb0ff;
    --accent2: #a78bfa;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    overflow-x: hidden;
    color: var(--text);
}

/* ==============================
   OVERLAY + STAGE
============================== */

.login-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(900px 600px at 20% 10%, rgba(110,168,255,.18), transparent 55%), radial-gradient(900px 600px at 90% 30%, rgba(167,139,250,.14), transparent 55%);
    z-index: 0;
}

.login-stage {
    position: relative;
    min-height: 100vh;
    padding-top: 35px; /* 👈 offset from top */
    display: flex;
    justify-content: start;
    align-items: flex-start;
    z-index: 1;
    align-items: center !important;
    flex-direction: column;
}

/* ==============================
   LOGIN CARD
============================== */

.LoginBackground {
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px 18px 16px 18px;
    position: relative;
}

    /* subtle glow */
    .LoginBackground::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: linear-gradient( 135deg, rgba(110,168,255,.35), rgba(167,139,250,.25), transparent 70% );
        filter: blur(24px);
        opacity: .55;
        pointer-events: none;
    }

    .LoginBackground > * {
        position: relative;
        z-index: 1;
    }

/* ==============================
   BRAND / LOGO
============================== */

.brand {
    text-align: center;
    margin-bottom: 14px;
}

/* panel stays the same */
#LogoPanel.logo-panel {
    width: 100%;
    height: 120px; /* tweak to taste */
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    background: var(--LoginLogoBackColor);
}

/* image fills the panel (cropped/zoomed) */
#LoginLogoImg.login-logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* ✅ fills edges */
    object-position: center; /* try: center, top, 50% 35% etc */

    transform: scale(1.001); /* ✅ zoom in a bit */
    transform-origin: center;
}

/* headings */
.brand-title {
    margin: 6px 0 2px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--muted);
}

.brand-sub {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* ==============================
   FORM FIELDS
============================== */

.field {
    margin-top: 10px;
}

    .field label {
        display: block;
        margin: 0 0 6px 2px;
        font-size: 12px;
        color: var(--muted);
    }

/* existing class, modernized */
.GTText {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border) !important;
    background: rgba(255,255,255,.12) !important;
    color: var(--text) !important;
    outline: none !important;
}

    .GTText::placeholder {
        color: var(--loginplaceholdercolor)
    }

    .GTText:focus {
        border-color: rgba(110,168,255,.55) !important;
        box-shadow: 0 0 0 4px rgba(110,168,255,.18) !important;
    }

/* ==============================
   ACTION ROW
============================== */

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

#savelogincheckbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent1);
}


/* ==============================
   SAVED LOGINS
============================== */

#SavedLogins {
    margin-top: 12px;
    height: 160px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--glass-dark);
    padding: 10px;
    overflow-y: auto;
    color: var(--text);
}

    #SavedLogins > * {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        margin-bottom: 8px;
        border-radius: var(--radius-sm);
        background: rgba(255,255,255,.06);
        cursor: pointer;
    }

        #SavedLogins > *:hover {
            background: rgba(255,255,255,.10);
        }

/* ==============================
   LINKS + ERROR
============================== */

#ForgotPassword label {
    color: rgba(234,240,255,.86);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

#lblError {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,90,122,.35);
    background: rgba(255,90,122,.12);
    color: #ffd2db;
    font-size: 13px;
}

/* ==============================
   ADVERT (OPTIONAL)
============================== */
.LoginAdvert:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(0,0,0,.45);
}
.LoginAdvert {
    display: block;
    object-fit: scale-down;
    max-width: 900px;
    min-width: 320px;
    height: 220px;
    margin-top: 20px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    margin-top: 24px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
}
/* AFTER */

@media (max-width: 768px) {
    .LoginAdvert {
        width: 90vw;
        margin-left: calc(50% - 45vw);
        margin-right: calc(50% - 45vw);
    }
}

.cursorhand {
    cursor: pointer;
}

@media (max-width: 900px) {
    .LoginAdvert {
        display: none;
    }
}
