﻿html, body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Base */
    background: #0C1B3D; /*dark blue*/
}

/* Make widths include padding/borders (prevents overflow) */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Defensive: inputs/buttons should never exceed their container */
.login-card, .login-card form {
    width: 100%;
}

    .login-card input, .login-card button {
        max-width: 100%;
    }

.login-bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("/images/sparkly.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center 55%;
    transform: scale(1.15);
    transform-origin: center;
    opacity: 0.95;
}

.login-overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh; /* ✅ key */
    display: flex; /* ✅ key */
    align-items: center; /* ✅ key */
    justify-content: center; /* ✅ key */
    padding: 2rem;
}

.login-panel {
    width: min(520px, 92vw); /* ✅ overall panel width (less wide) */
    background: #fbf8ee; /* warm cream */
    border-radius: 20px;
    padding: 26px 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}


.login-container {
    width: min(560px, 92vw);
    display: flex; /* ✅ key */
    flex-direction: column; /* ✅ key */
    align-items: center; /* ✅ center the stack */
    text-align: center;
    gap: 1.25rem; /* spacing between brand + card */
}

/* brand sits on cream now */
.login-brand {
    width: 100%;
}

/* card becomes “inner” and should be transparent */
.login-card {
    width: 100%;
    max-width: none;
    background: transparent; /* ✅ because panel is the cream surface */
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}


.tt-logo {
    max-width: 220px;
    margin-bottom: 1rem;
}

/* optical centering for the Spark logo image */
.spark-logo {
    max-width: 340px;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: translateX(14px); /* ✅ was 14epx */
}

.tagline {
    max-width: 220px;
    opacity: 0.9;
}


/* Center the brand stack */
.login-card__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.spark-logo {
    max-width: 340px;
    height: auto;
}

.tagline {
    max-width: 240px;
    height: auto;
    opacity: 0.95;
}

/* Form layout */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


/* Inputs */
.login-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.9);
    color: #0b1a33;
    font-size: .95rem;
    margin-bottom: 14px; /* slightly more spacing */
}

    .login-input::placeholder {
        color: rgba(11,26,51,0.45);
    }

    .login-input:focus {
        outline: none;
        border-color: rgba(201,162,39,0.85);
        box-shadow: 0 0 0 4px rgba(201,162,39,0.18);
    }

/* Buttons */
.login-submit {
    width: 100%; /* full width inside panel */
    border-radius: 10px;
    padding: 11px 18px;
    margin-top: 6px; /* space from password */
}

/* Error */
.login-error {
    margin-top: 10px;
    color: #b42318;
    font-size: 0.9rem;
}

.login-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: rgba(0,0,0,0.45);
    font-size: 0.9rem;
}

    .login-sep::before,
    .login-sep::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(0,0,0,0.12);
    }

    .login-sep span {
        white-space: nowrap;
    }


/* Top-left brand */
.login-global-logo {
    position: fixed;
    top: 28px;
    left: 200px;
    z-index: 5; /* above glow + panel */
}

    .login-global-logo img {
        height: 40px; /* scale as desired */
        width: auto;
    }
