/* Login page styled after the Angular management portal
   (manager-dev.lottasystems.app/auth/login): pastel radial gradient behind a
   white card, Material-style outlined fields, dark-green primary button.
   Values (colours, radii, shadow, gradient) were taken from that page's
   computed styles so both front-ends stay visually identical. */

:root {
    --lotta-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --lotta-primary: #183a37;
    --lotta-primary-hover: #0f2624;
    --lotta-text: #2a3547;
    --lotta-muted: #7c8fac;
    --lotta-border: #dfe5ef;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.auth-body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    color: var(--lotta-text);
    font-family: var(--lotta-font);
    font-size: 14px;
    line-height: 1.5;
}

/* The portal paints the gradient on a ::before at 30 % opacity so the pastel
   tones stay soft; same approach here. */
body.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(#d2f1df, #d3d7fa, #bad8f4);
    background-size: 400% 400%;
    background-position: 0 50%;
    opacity: 0.3;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 397px;
    padding: 32px;
    background: #ffffff;
    border-radius: 7px;
    box-shadow: rgba(145, 158, 171, 0.3) 0 0 2px 0,
        rgba(145, 158, 171, 0.12) 0 12px 24px -4px;
}

.auth-logo {
    display: block;
    height: 36px;
    width: auto;
    margin: 0 auto 28px;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 7px;
    background: #fdede8;
    border: 1px solid #f7c8b8;
    color: #a33a1c;
    font-size: 13px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lotta-text);
}

.auth-field input[type="text"],
.auth-field input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--lotta-text);
    background: #ffffff;
    border: 1px solid var(--lotta-border);
    border-radius: 7px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
    color: var(--lotta-muted);
}

.auth-field input:hover {
    border-color: #c3ccdb;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--lotta-primary);
    box-shadow: 0 0 0 3px rgba(24, 58, 55, 0.12);
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--lotta-text);
    cursor: pointer;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--lotta-primary);
    cursor: pointer;
    margin: 0;
}

.auth-forgot {
    font-size: 14px;
    font-weight: 600;
    color: var(--lotta-primary);
    text-decoration: none;
}

.auth-forgot:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 40px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: var(--lotta-primary);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.auth-submit:hover {
    background: var(--lotta-primary-hover);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(24, 58, 55, 0.45);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-field input,
    .auth-submit {
        transition: none;
    }
}
