.login-page {
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 124px 0 72px;
}

.login-page__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.login-page__background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 58, 61, 0.9), rgba(24, 58, 61, 0.74)),
        linear-gradient(180deg, rgba(24, 58, 61, 0.3), #183A3D);
}

.login-page__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.85);
    opacity: 0.45;
}

.login-page__container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-panel {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid rgba(166, 138, 100, 0.22);
    background: rgba(24, 58, 61, 0.76);
    backdrop-filter: blur(18px);
    padding: clamp(28px, 5vw, 44px);
}

.login-panel__header {
    margin-bottom: 34px;
    text-align: center;
}

.login-panel__header h1 {
    font-size: clamp(3rem, 10vw, 4.75rem);
    line-height: 1;
    margin-top: 12px;
}

.login-alert {
    border: 1px solid rgba(166, 138, 100, 0.35);
    background: rgba(166, 138, 100, 0.12);
    color: var(--foreground);
    font-size: 0.82rem;
    font-weight: 400;
    margin-bottom: 28px;
    padding: 14px 16px;
}

.login-alert--success {
    background: rgba(94, 129, 117, 0.16);
}

.login-form-group {
    margin-bottom: 28px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 32px;
}

.login-link {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.login-link:hover {
    color: var(--foreground);
}

.login-submit {
    width: 100%;
}

@media (max-width: 767px) {
    .login-page {
        align-items: flex-start;
        min-height: auto;
        overflow: visible;
        padding: 118px 0 56px;
    }

    .login-panel {
        max-width: 100%;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

