:root {
    --auth-bg-start: #080d16;
    --auth-bg-end: #182437;
    --auth-panel: #121a28;
    --auth-field: #1a2434;
    --auth-field-border: #2a3547;
    --auth-text: #eef2f7;
    --auth-text-muted: #8695aa;
    --auth-accent: #ff6a45;
    --auth-accent-dark: #e8552f;
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #1c2c46 0%, var(--auth-bg-start) 55%), linear-gradient(135deg, var(--auth-bg-start), var(--auth-bg-end));
    padding: 1.5rem 0;
    font-family: 'Plus Jakarta Sans', 'Source Sans Pro', sans-serif;
}

.login-box {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.auth-card {
    background: var(--auth-panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
    display: flex;
    overflow: hidden;
    min-height: 480px;
}

.auth-form {
    width: 100%;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-brand-logo {
    max-height: 64px;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: .5rem;
}

.auth-brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--auth-text);
    margin: 0;
}

.auth-subtitle {
    color: var(--auth-text-muted);
    margin: .4rem 0 0;
    font-size: .95rem;
}

.auth-form .alert-danger {
    background: rgba(255, 106, 69, .12);
    border: 1px solid rgba(255, 106, 69, .35);
    color: #ffb3a0;
    border-radius: 10px;
}

.auth-form .alert-success {
    background: rgba(126, 224, 168, .12);
    border: 1px solid rgba(126, 224, 168, .35);
    color: #9ff0c0;
    border-radius: 10px;
}

.auth-form .alert {
    padding: .65rem .9rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: var(--auth-text-muted);
    font-size: .85rem;
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--auth-accent);
    text-decoration: underline;
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--auth-field-border);
    border-radius: 10px;
    background: var(--auth-field);
    transition: border-color .15s, box-shadow .15s;
}

.auth-input:focus-within {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 69, .18);
}

.auth-input span {
    width: 46px;
    flex: none;
    text-align: center;
    color: var(--auth-text-muted);
}

.auth-input .form-control {
    border: none;
    background: transparent;
    padding-left: 0;
    color: var(--auth-text);
    box-shadow: none !important;
}

.auth-input .form-control::placeholder {
    color: var(--auth-text-muted);
}

.auth-input .form-control:focus {
    box-shadow: none;
    background: transparent;
    color: var(--auth-text);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.auth-remember input {
    cursor: pointer;
    accent-color: var(--auth-accent);
}

.auth-remember label {
    margin: 0;
    color: var(--auth-text-muted);
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    background: var(--auth-accent);
    border-color: var(--auth-accent);
    border-radius: 10px;
    padding: .7rem 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .15s, transform .05s;
}

.auth-submit:hover,
.auth-submit:focus {
    background: var(--auth-accent-dark);
    border-color: var(--auth-accent-dark);
}

.auth-submit:active {
    transform: scale(.99);
}

.auth-image {
    display: none;
    position: relative;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 106, 69, .55), transparent 55%),
        linear-gradient(160deg, #24344f, #0a0f1a);
}

.auth-image-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* contain (not cover) so an uploaded logo/badge is never cropped or
       stretched -- a wide photo will letterbox on the gradient instead */
    object-fit: contain;
    padding: 3rem;
    box-sizing: border-box;
}

.auth-powered-by {
    text-align: center;
    color: var(--auth-text-muted);
    font-size: .78rem;
    line-height: 1;
    margin: 1.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.auth-powered-by-logo-frame { height: 24px; width: 67px; overflow: hidden; display: block; position: relative; }
.auth-powered-by-logo { height: 24px; width: auto; display: block; position: absolute; left: -21px; top: 0; }

@media (max-width: 340px) {
    .auth-powered-by span:first-child { display: none; }
}

@media (min-width: 900px) {
    .auth-form {
        width: 55%;
        padding: 3.5rem;
    }

    .auth-image {
        display: block;
        width: 45%;
    }
}
