/* ─── Background ─────────────────────────────────────────── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(ellipse at top left, #071320 0%, #050e18 50%, #020609 100%);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* ─── Decorative orbs ────────────────────────────────────── */
.bg__orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: orb-float 10s ease-in-out infinite alternate;
}

.bg__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4CAF50, transparent 70%);
    top: -120px;
    left: -120px;
    animation-duration: 12s;
}

.bg__orb--2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #112ed4, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-duration: 9s;
    animation-delay: -4s;
}

.bg__orb--3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #1a3a52, transparent 70%);
    top: 50%;
    left: 60%;
    animation-duration: 15s;
    animation-delay: -7s;
}

@keyframes orb-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

/* ─── Layout ─────────────────────────────────────────────── */
.login__main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    gap: 28px;
    padding: 0 16px;
    margin: 0 auto;
}

/* ─── Title ──────────────────────────────────────────────── */
.login__titleContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.login__title {
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.login__titleContainer > p {
    font-size: 0.82rem;
    color: rgba(137, 161, 174, 0.9);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ─── Form container ─────────────────────────────────────── */
.login__formContainer {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ─── Glass card ─────────────────────────────────────────── */
.login__form {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ─── Form inner ─────────────────────────────────────────── */
.container {
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
}

.container label.bold {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 16px;
    margin-bottom: 6px;
}

.container label.bold:first-child {
    margin-top: 0;
}

/* ─── Inputs ─────────────────────────────────────────────── */
.inputText {
    width: 100%;
    padding: 12px 15px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.inputText:focus {
    border-color: rgba(76, 175, 80, 0.7);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
}

.inputText::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ─── Button ─────────────────────────────────────────────── */
button[type="submit"] {
    width: 100%;
    padding: 13px;
    margin-top: 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(76, 175, 80, 0.5);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
}

/* ─── Message box ────────────────────────────────────────── */
.login__msgBoxContainer {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.login__msgBoxContainer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ─── Responsive ─────────────────────────────────────────── */

/* Tablet */
@media screen and (max-width: 768px) {
    .login__main {
        max-width: 400px;
        gap: 24px;
    }

    .bg__orb--1 { width: 350px; height: 350px; }
    .bg__orb--2 { width: 300px; height: 300px; }
    .bg__orb--3 { display: none; }
}

/* Mobile */
@media screen and (max-width: 480px) {
    body {
        align-items: flex-start;
        padding-top: 10vh;
    }

    .login__main {
        max-width: 100%;
        gap: 20px;
        padding: 0 20px;
    }

    .login__title {
        font-size: 1.2rem;
    }

    .container {
        padding: 28px 22px 22px;
    }

    .bg__orb--1 { width: 220px; height: 220px; opacity: 0.18; }
    .bg__orb--2 { width: 200px; height: 200px; opacity: 0.18; }
}

/* Small mobile */
@media screen and (max-width: 360px) {
    .container {
        padding: 22px 16px 18px;
    }

    button[type="submit"] {
        padding: 12px;
    }
}
