:root{
    --bg:#111214;
    --panel:#1a1a1a;
    --muted:#9a9a9a;
    --accent:#2289c1;;
    --card:#171717;
    --glass: rgba(255,255,255,0.03);
    --radius:16px;
    --max-width:1100px;
}

/* Full page */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, #2289c1 10%, #ffffff 80%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #eaeaea;
    /* remove page scrollbar and keep any overflow inside the card */
    overflow: hidden;
}

/* -- replaced body::before with .login-image so artwork is placed on the page background -- */
.login-image{
    position: fixed;
    top: 0;
    right: -104px;
    height: 100%;    /* Zoom out by increasing height */
    width: 55%;      /* Zoom out by increasing width */
    z-index: 0;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    background: url('../assets/1-8fdd37f4_Nero_AI_Image_Upscaler_Photo_Face.png') center center / cover no-repeat;
    box-shadow: none;
    pointer-events: none; /* Prevent interaction */
    opacity: 0.78;
}

/* Card wrapper - remove transparency, use solid card color */

.login-layout {
    width: 100%;
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 0;
    border-radius: calc(var(--radius) + 8px);
    /* allow internal scrolling when viewport is small while keeping the page itself static */
    overflow: auto;
    box-shadow: none;
    background-color: var(--card); /* solid card background */
    position: relative;
    max-height: calc(100vh - 40px);
    z-index: 1;
}

/* Left informational panel */
.login-left {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    color: #f7f7f7;
}

/* Title and tagline */
.login-title {
    font-size: 3rem;
    font-family: Bugatti Text Regular,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: 0.4px;
}

.login-subtitle {
    font-size: 1rem;
    color: #ffffff;
    margin-top: -4px;
    opacity: 0.95;
    font-weight: 600;
}

/* Logo in the left panel */
.login-logo-wrap { display:flex; align-items:center; justify-content:center;}
.login-logo {
    width: 240px;
    height: 120px;
    display:block;
    background-image: url('../assets/White-Bugatti-Logo.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: scale(2.1);
    margin-bottom: 30px;
    transform-origin: center;
}

/* Global fixed top-left logo */
.global-top-logo {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    padding: 8px;
    border-radius: 10px;
    box-shadow: none;
}
.global-top-logo img { width:57px; height:auto; display:block; }

@media (max-width: 700px) {
    .global-top-logo { left: 10px; top: 8px; padding:4px; }
    .global-top-logo img { width:36px; }
}

.login-quote {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 18px;
}

/* Right form container */
.container {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    padding: 38px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    z-index: 2;
}


/* Inputs */
.field {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label.field-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background-color: rgba(255,255,255,0.03);
    color: #f1f1f1;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.18);
    outline: none;
    transition: box-shadow .12s ease, transform .06s ease, border-color .12s ease;
}

input::placeholder { color: var(--muted); opacity: .95; }

input:focus {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22), 0 0 0 3px rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

/* small inline hints */
.input-hint {
    font-size: 13px;
    color: var(--muted);
    min-height: 18px;
}

/* Caps & language warnings */
.warn {
    color: #ffd27a;
    font-weight: 700;
    font-size: 13px;
}
.warn.error {
    color: #ff6b6b;
}

/* Primary button */
button {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent), #6d6d6d);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: none;
    align-self: center;
}

button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Links and small text */
a {
    color: var(--accent);
    font-size: 14px;
    text-decoration: none;
}

a:hover { text-decoration: underline; color: #ffffff; }

/* Responsive: stack on small screens */
@media (max-width: 980px) {
    .login-layout {
        grid-template-columns: 1fr;
        max-width: 680px;
        max-height: calc(100vh - 32px);
        min-height: auto;
        overflow: auto;
    }
    .login-image { display: none; }
    .login-left { padding: 18px; text-align: center; align-items: center; }
    .container { padding: 28px; }
    /* scale down the login logo on smaller screens to avoid overflow */
    .login-logo { width: 160px; height: 80px; }
}

/* Small improvements for accessibility */
input::placeholder { color: var(--muted); opacity: .95; }

/* Footer tweak */
.footer {
    position: fixed;
    right: 24px;
    bottom: 16px;
    text-align: right;
    color: #fff;
    font-size: 13px;
    z-index: 10;
    background: transparent;
}
.footer a { color: var(--accent); }
.footer a:hover { color: #000000; }

.container h2{
    font-weight: 600;
    font-size: 2rem;
    color: #f1f1f1;
    font-family: bugatti text regular, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Centered notify-modal (reuses notify visual language but centered) */
.center-notify-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000; /* above page content but below global toasts if any */
    pointer-events: auto;
}
.center-notify {
    pointer-events: auto;
    /* responsive sizing to avoid horizontal overflow */
    width: min(92vw, 820px);
    max-width: 92vw;
    min-width: 320px;
    background: #0b1220; /* slightly darker than toast for center prominence */
    color: #f9fafb;
    border-left: 4px solid var(--accent, #2563eb);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.28);
    overflow: hidden;
    box-sizing: border-box;
    position: relative; /* contain pseudo-element */
    transform: translateY(6px) scale(0.998);
    opacity: 0;
    transition: opacity .28s ease, transform .28s ease;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.center-notify::before {
    /* subtle white linen texture to differentiate the modal without overpowering */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.025) 50%, rgba(255,255,255,0.025) 75%, transparent 75%, transparent);
    background-size: 10px 10px;
    mix-blend-mode: overlay;
}
.center-notify.show { opacity: 1; transform: translateY(0) scale(1); }
.center-notify__body { padding: 20px 20px 14px 20px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.center-notify__title { font-size: 18px; font-weight: 900; color: #cbd5e1; margin: 0 0 8px 0; }
.center-notify__msg { font-size: 17px; color: #e5e7eb; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.center-notify__close { background: transparent; border: 0; color: #94a3b8; font-size: 18px; cursor: pointer; padding:6px; border-radius:6px; display:flex; align-items:center; justify-content:center; }
.center-notify__close svg { width:18px; height:18px; display:block; }
.center-notify__close:hover { background: rgba(255,255,255,0.03); color: #e5e7eb; }
.center-notify__progress { height: 6px; width: 100%; background: rgba(255,255,255,0.06); position: relative; }
.center-notify__progress::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent, #2563eb); transform-origin: left; animation-name: centerNotifyProgress; animation-timing-function: linear; animation-fill-mode: forwards; animation-duration: var(--duration, 5s); }
@keyframes centerNotifyProgress { from { width: 0%; } to { width: 100%; } }

/* Top-right notify container to host toasts */
.notify-top-right {
    position: fixed;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30000;
    pointer-events: none; /* allow clicks to pass through except on toasts */
}
.notify-top-right .center-notify {
    pointer-events: auto;
    width: auto;
    min-width: 300px;
    max-width: 420px;
    box-sizing: border-box;
    margin: 0;
    transform-origin: top right;
}
.notify-top-right .center-notify__body { padding: 12px 14px; }
.notify-top-right .center-notify__title { font-size: 15px; }
.notify-top-right .center-notify__msg { font-size: 14px; line-height: 1.4; }

