body.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: max(32px, env(safe-area-inset-top, 0px))
        max(16px, env(safe-area-inset-right, 0px))
        max(32px, env(safe-area-inset-bottom, 0px))
        max(16px, env(safe-area-inset-left, 0px));
    color: #eaf3ff;
}

.login-shell {
    flex: 0 0 auto;
    width: min(416px, 100%);
    margin-block: auto;
}

.login-page .login-card {
    overflow: hidden;
    border: 1px solid #38576f;
    border-radius: 16px;
    color: #eaf3ff;
}

.login-brand {
    padding: 24px 28px 21px;
    border-bottom: 1px solid rgba(116, 158, 188, .25);
}

.login-brand-name {
    overflow-wrap: anywhere;
    color: #f4f8ff;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.8px;
}

.login-brand-name .brand-accent {
    color: #25d477;
}

.login-brand-caption {
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: #aec5db;
    font-size: 12px;
    line-height: 1.5;
}

.login-card-content {
    padding: 25px 28px 28px;
}

.login-page .title {
    margin: 0;
    color: #eaf3ff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.7px;
}

.login-page .subtitle {
    margin: 7px 0 23px;
    color: #aec5db;
    font-size: 13px;
    line-height: 1.55;
}

.login-page .field-group {
    margin-bottom: 18px;
}

.login-page .field-label {
    display: block;
    margin-bottom: 8px;
    color: #c5d9ed;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.login-page .form-control {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #41637b;
    border-radius: 8px;
    background: #11283a;
    color: #eaf3ff;
    font-size: 16px;
    line-height: 1.5;
}

.login-page .form-control::placeholder {
    color: #9eb6cd;
    font-size: 14px;
    opacity: 1;
}

.login-page .form-control:focus {
    border-color: #38d78d;
    background: #17374a;
    color: #eaf3ff;
    box-shadow: 0 0 0 2px rgba(37, 212, 119, .16);
}

.login-page .password-field {
    position: relative;
}

.login-page .password-field .form-control {
    padding-right: 52px;
}

.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #b5cfe3;
    cursor: pointer;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
}

.password-visibility-toggle:hover {
    background: #204157;
    color: #eaf3ff;
}

.password-visibility-toggle[aria-pressed="true"] {
    color: #6be5ae;
}

.password-eye-icon {
    width: 19px;
    height: 19px;
}

.password-eye-hide,
.password-visibility-toggle[aria-pressed="true"] .password-eye-show {
    display: none;
}

.password-visibility-toggle[aria-pressed="true"] .password-eye-hide {
    display: block;
}

.login-page .remember-row {
    margin: -1px 0 18px;
}

.login-page .remember-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 5px 0;
    color: #c9dcec;
    cursor: pointer;
}

.login-page .remember-checkbox-input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    appearance: auto;
    accent-color: #25d477;
}

.remember-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.5;
}

.remember-toggle-title {
    font-size: 13px;
}

.remember-toggle-hint {
    color: #aec5db;
    font-size: 11px;
}

.login-page .error-box {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, .3);
    border-radius: 8px;
    background: rgba(139, 36, 49, .25);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.login-page .btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #36dd93;
    border-radius: 8px;
    background: linear-gradient(110deg, #1ace7b, #30e29a);
    color: #032b1c;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.login-page .btn-login:hover {
    background: linear-gradient(110deg, #35dd90, #49e9aa);
    color: #032b1c;
}

.login-submit-icon {
    width: 18px;
    height: 18px;
}

.login-page :is(button, input):focus-visible {
    outline: 2px solid #57dfae;
    outline-offset: 3px;
}

.login-page .developer-note {
    margin-top: 19px;
    color: #94adc1;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .1px;
    text-align: center;
}

/* Install prompts stay in the document flow when the viewport or keyboard shrinks. */
.login-page .pwa-ui {
    position: static;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.login-page .pwa-install-button {
    width: 100%;
    margin-bottom: 18px;
}

.login-page .pwa-install-status {
    max-width: 100%;
    margin-bottom: 16px;
}

.login-page .pwa-ios-card {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 16px;
}

@media (max-width: 480px) {
    body.login-page {
        padding-top: max(24px, env(safe-area-inset-top, 0px));
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }

    .login-brand {
        padding: 22px;
    }

    .login-card-content {
        padding: 23px 22px 25px;
    }
}
