/**
 * Brightside login — hero + centered card (reference layout)
 */

@import url('page-loader.css?v=4');

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

/* Full-screen hero (clickable — goes to home / reload) */
a.login-page__hero {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

a.login-page__hero:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
}

.login-page__hero {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1e293b;
}

.login-page__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 32, 52, 0.62);
}

/* Centered login block */
.login-page__center {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.25rem 1.25rem 1.75rem;
    width: 100%;
    pointer-events: none;
}

.login-page__card {
    position: relative;
    width: 100%;
    max-width: min(95vw, 580px);
    padding: 3.85rem 2.25rem 2.85rem;
    pointer-events: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.05),
        0 16px 36px rgba(15, 23, 42, 0.12),
        0 32px 64px rgba(15, 23, 42, 0.08);
}

/* Logo: half above card — larger mark, no white circular badge */
.login-page__logo-wrap {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: min(94vw, 280px);
    height: auto;
    border-radius: 0;
    background: transparent;
    padding: 0;
    overflow: visible;
    box-shadow: none;
}

.login-page__logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: block;
    width: auto;
    height: auto;
    max-width: min(94vw, 260px);
    max-height: 148px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.2));
}

.login-page__title {
    font-size: clamp(1.1rem, 2.7vw, 1.38rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    margin: 0.85rem 0 0.5rem;
    padding-top: 0.15rem;
    color: #0a0a0a;
    letter-spacing: -0.02em;
}

.login-page__lead {
    font-size: 0.875rem;
    line-height: 1.55;
    text-align: center;
    margin: 0 0 1.6rem;
    color: #64748b;
}

.login-page__field {
    margin-bottom: 1.15rem;
}

.login-page__label {
    display: block;
    font-size: 0.84375rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}

/* Reference: pale cream fields */
.login-page__input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    font-size: 1rem;
    line-height: 1.45;
    color: #0f172a;
    background: #fffde7;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-page__input::placeholder {
    color: #94a3b8;
}

.login-page__input:hover {
    border-color: #a1a1aa;
}

.login-page__input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.login-page__input:-webkit-autofill,
.login-page__input:-webkit-autofill:hover,
.login-page__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    box-shadow: 0 0 0 1000px #fffde7 inset;
    transition: background-color 9999s ease-out;
}

.login-page__input-wrap {
    position: relative;
    display: block;
}

.login-page__input--password {
    padding-right: 2.65rem;
}

.login-page__pw-toggle {
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.login-page__pw-toggle:hover {
    color: #334155;
    background: rgba(15, 23, 42, 0.06);
}

.login-page__pw-toggle:focus-visible {
    outline: 2px solid #28a745;
    outline-offset: 1px;
}

/* Green → gold gradient (reference) */
.login-page__btn {
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.82rem 1rem;
    min-height: 2.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    background: linear-gradient(90deg, #28a745 0%, #34ce57 45%, #ffc107 100%);
    background-size: 100% 100%;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.22);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.login-page__btn:hover {
    filter: brightness(1.05);
}

.login-page__btn:active {
    transform: scale(0.99);
    filter: brightness(0.98);
}

.login-page .alert {
    font-size: 0.875rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.login-page__footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 1rem 1.25rem 1.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
}

.login-page__footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    margin: 0 0.45rem;
}

.login-page__footer a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-page__card {
        padding: 3.35rem 1.35rem 2.15rem;
        border-radius: 18px;
    }

    .login-page__logo {
        max-height: 112px;
        max-width: min(92vw, 220px);
    }

    .login-page__center {
        padding-top: 3.5rem;
    }
}
