/* Codefever – authenticate.css
   Palette is taken from the logo: green (top) -> blue (bottom). */

:root {
    --green: #2fe08f;
    --blue: #1f8bff;
    --brand: linear-gradient(180deg, var(--green), var(--blue));

    --bg: #0a1620;
    --panel: #102230;
    --line: #1f3a4d;
    --text: #e8f3f7;
    --muted: #8fa9b8;

    --font: "JetBrains Mono", "Fira Code", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem 1.25rem;
    font-family: var(--font);
    color: var(--text);
    background:
            radial-gradient(ellipse 60% 40% at 50% 0%, rgba(47, 224, 143, 0.12), transparent 70%),
            radial-gradient(ellipse 60% 40% at 50% 100%, rgba(31, 139, 255, 0.14), transparent 70%),
            var(--bg);
}

/* Logo */
header {
    line-height: 0;
}

header img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(47, 224, 143, 0.25));
}

/* Form panel – the vertical gradient bar on the left echoes the logo */
form {
    position: relative;
    width: 100%;
    max-width: 24rem;
    padding: 1.75rem 1.75rem 1.75rem 2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

form::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--brand);
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
}

form br {
    display: none;
}

input[type="password"],
input[type="text"] {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.8rem 0.9rem;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
    color: var(--muted);
}

input:focus-visible {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 224, 143, 0.22);
}

/* Primary action */
button {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    font: inherit;
    font-weight: 700;
    color: #04141f;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 22px rgba(31, 139, 255, 0.35);
}

button:active {
    transform: translateY(1px);
}

button:focus-visible {
    outline: 3px solid rgba(47, 224, 143, 0.5);
    outline-offset: 2px;
}

@media (max-width: 420px) {
    form {
        padding: 1.5rem 1.25rem 1.5rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}