.login-page {
    display: flex;
    justify-content: center;
    padding: clamp(24px, 6vh, 64px) 16px 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 32px 36px 36px;
    border: 1px solid #e0e7e5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(18, 76, 70, .07);
    color: #182c29;
}

.login-header {
    margin-bottom: 28px;
    text-align: center;
}

.login-logo {
    display: block;
    margin: 0 auto 12px;
}

.login-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.login-header p {
    margin: 0;
    color: #5d6d69;
    font-size: 16px;
    line-height: 1.5;
}

.login-field + .login-field {
    margin-top: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
}

.login-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #b9c8c3;
    border-radius: 8px;
    background: #fff;
    color: #182c29;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

.login-input:focus,
.login-password-field:focus-within {
    border-color: #197367;
    outline: 3px solid rgba(38, 167, 146, .2);
    outline-offset: 2px;
}

.login-password-field {
    display: flex;
    align-items: center;
    border: 1px solid #b9c8c3;
    border-radius: 8px;
    background: #fff;
}

.login-password-field .login-input {
    height: 48px;
    border: 0;
    background: transparent;
    outline: none;
}

.login-password-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin-right: 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #516963;
    font-size: 18px;
    cursor: pointer;
}

.login-password-toggle[hidden] {
    display: none;
}

.login-password-toggle:hover,
.login-password-toggle[aria-pressed="true"] {
    background: #effaf7;
    color: #197367;
}

.login-help {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 20px;
}

.login-recovery {
    min-height: 36px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #197367;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.login-recovery:hover {
    text-decoration: underline;
}

.login-submit {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #197367;
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}

.login-submit:hover {
    background: #155c54;
}

.login-password-toggle:focus-visible,
.login-recovery:focus-visible,
.login-submit:focus-visible {
    outline: 2px solid #197367;
    outline-offset: 3px;
}

.login-errors {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f0b9b9;
    border-radius: 8px;
    background: #fff4f4;
    color: #a12525;
    font-size: 15px;
}

.login-errors p {
    margin: 0;
}

@media (max-width: 480px) {
    .login-page {
        padding-right: 0;
        padding-left: 0;
    }

    .login-card {
        padding: 24px;
    }
}
