.anon-nav {
    display: none;
}

main.container.py-4 {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem !important;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(77, 150, 255, 0.2), transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(22, 163, 74, 0.14), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #f3f8ff 55%, #edf4ff 100%);
}

main.container.py-4::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(31, 99, 214, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 99, 214, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 50%, transparent 92%);
}

.login-shell {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-global-messages {
    width: min(100%, 620px);
    margin: 0 auto 0.85rem;
    position: relative;
    z-index: 1;
}

.login-global-message {
    border: 1px solid #b7e7c8;
    background: linear-gradient(135deg, #f2fff6, #e8fff1);
    color: #175b3b;
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(22, 101, 52, 0.12);
}

.login-global-message.is-error,
.login-global-message.is-danger {
    border-color: #f5c2c7;
    background: #fff5f6;
    color: #8a1f2f;
    box-shadow: 0 10px 24px rgba(136, 26, 44, 0.1);
}

.login-precard {
    margin-bottom: 0.72rem;
    text-align: center;
}

.login-precard-offer-title {
    margin: 0;
    color: #0f3f8a;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.offer-days-highlight {
    color: #0b63ff;
    font-weight: 900;
}

.login-precard-offer-muted {
    margin: 0.24rem 0 0;
    color: #15803d;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.25;
}

.login-card-offer {
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e7edf8;
    text-align: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(7px);
    border-radius: 22px;
    border: 1px solid rgba(190, 213, 246, 0.85);
    box-shadow: 0 30px 70px rgba(20, 44, 84, 0.18);
    padding: 2rem 1.35rem 1.05rem;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f63d6 0%, #2bb6ff 55%, #39d98a 100%);
}

.login-card::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(81, 165, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.login-logo {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    border: 1px solid #8eb5ff;
    background: #f1f6ff;
    display: grid;
    place-items: center;
    margin: 0 auto 0.95rem;
}

.login-logo svg {
    width: 44px;
    height: 44px;
}

.login-precard-logo {
    margin-bottom: 0.55rem;
}

.login-title {
    margin: 0;
    color: #15488f;
    font-size: 1.95rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.login-subtitle {
    margin: 0.35rem 0 0.7rem;
    color: #4f6484;
    font-size: 0.94rem;
    font-weight: 500;
}

.login-messages {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.login-message {
    display: flex;
    align-items: flex-start;
    gap: 0.52rem;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    border: 1px solid #d6e3fa;
    background: #f8fbff;
    color: #2a4a78;
}

.login-message-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 900;
    background: #d7e7ff;
    color: #1d4e9f;
}

.login-message-text {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
}

.login-message.is-success {
    border-color: #b9e7cc;
    background: linear-gradient(135deg, #f2fff7, #edfff5);
    color: #1d5f3f;
}

.login-message.is-success .login-message-icon {
    background: #c7f2d8;
    color: #166534;
}

.login-message.is-error,
.login-message.is-danger {
    border-color: #f5c2c7;
    background: #fff5f6;
    color: #8a1f2f;
}

.login-message.is-error .login-message-icon,
.login-message.is-danger .login-message-icon {
    background: #ffd9de;
    color: #9f1239;
}

.login-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.login-form .field {
    margin-bottom: 0.85rem;
}

.login-input {
    width: 100%;
    border: 1px solid #c8d8f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a;
    padding: 0.67rem 0.76rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.password-field {
    position: relative;
}

.password-field .login-input {
    padding-right: 2.3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6f84a8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.password-toggle svg {
    width: 15px;
    height: 15px;
    display: block;
}

.password-toggle .eye-off-line {
    display: none;
}

.password-toggle.is-visible .eye-off-line {
    display: block;
}

.password-toggle.is-visible .eye-on-line {
    display: none;
}

.password-toggle:hover {
    color: #365d96;
}

.password-rules {
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d9e5fb;
    border-radius: 10px;
    background: #f8fbff;
}

.password-rules-title {
    margin: 0 0 0.28rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #34527f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.password-rules ul {
    margin: 0;
    padding-left: 1rem;
}

.password-rules li {
    color: #4a6187;
    font-size: 0.82rem;
    margin: 0.15rem 0;
}

.login-input:focus {
    outline: 0;
    border-color: #2a7df0;
    box-shadow: 0 0 0 0.2rem rgba(42, 125, 240, 0.15), 0 8px 20px rgba(42, 125, 240, 0.12);
    transform: translateY(-1px);
}

.login-submit {
    width: 100%;
    margin-top: 0.28rem;
    border: 0;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.96rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #1f63d6, #1d57b8 58%, #1a8fe8 100%);
    box-shadow: 0 10px 24px rgba(31, 99, 214, 0.28);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(31, 99, 214, 0.34);
}

.login-links {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.login-links a {
    color: #1f63d6;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.login-links a.login-secondary-btn {
    color: #5a3b00;
    background: #facc15;
    border: 1px solid #eab308;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login-links a.login-secondary-btn:hover {
    background: #eab308;
    border-color: #ca8a04;
    color: #422006;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-errors {
    margin-bottom: 0.8rem;
}

@media (max-width: 575.98px) {
    main.container.py-4 {
        padding: 1.25rem 0.75rem !important;
    }

    .login-card {
        padding: 1.25rem 0.9rem 0.9rem;
        border-radius: 12px;
    }

    .login-precard-offer-title {
        font-size: 1rem;
    }

    .login-precard-offer-muted {
        font-size: 0.86rem;
    }

    .login-title {
        font-size: 1.6rem;
    }

    .login-links {
        flex-direction: column;
        align-items: stretch;
    }

    .login-links a {
        text-align: center;
    }

    .login-links a.login-secondary-btn {
        width: 100%;
    }
}
