*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-btn: #FF7A95;
    --color-btn-hover: #FF7A95;
}

body {
    font-family: var(--font-body);
    color: #373737;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 48px 24px;
    overflow: hidden;
}

.auth-back-home {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: #373737;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back-home svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-back-home:hover {
    color: #FF7A95;
}

@media (max-width: 576px) {
    .auth-back-home {
        top: 16px;
        left: 16px;
    }
}

.login-page__bg-ellipse {
    position: absolute;
    width: 907px;
    height: 907px;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(197, 222, 255, 0.5) 0%, rgba(197, 222, 255, 0) 100%);
    pointer-events: none;
}

.login-page__bg-ellipse--top-right {
    right: -187px;
    top: -97px;
}

.login-page__bg-ellipse--bottom-left {
    left: -402px;
    top: 93px;
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 720px;
}

.login-container__title {
    padding-bottom: 10px;
}

.login-card-wrapper {
    width: 100%;
    filter: drop-shadow(0px 12px 24px rgba(55, 55, 55, 0.2));
}

.login-card-scallop {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    height: 17px;
    overflow: hidden;
}

.login-card-scallop--top {
    transform: rotate(-180deg);
}

.login-card-scallop--bottom .login-card-scallop__circle {
    box-shadow: 0px 12px 24px rgba(55, 55, 55, 0.06);
}

.login-card-scallop__circle {
    flex: 1;
    width: 37.89px;
    height: 37.89px;
    min-width: 20px;
    border-radius: 50%;
    background: #ffffff;
}

.login-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 41px 48px;
    gap: 24px;
    width: 100%;
    background: #ffffff;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 624px;
}

.login-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    scroll-margin-top: 24px;
    scroll-margin-bottom: 120px;
}

.login-field__label {
    font-weight: 600;
    font-size: 16px;
    line-height: 23px;
    color: #373737;
}

.login-field__required {
    color: #FF7A95;
    margin-left: 2px;
}

.login-field__input-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 12px;
    width: 100%;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.login-field__input-wrap:focus-within {
    border-color: #1cb0f6;
}

.login-field--has-error .login-field__input-wrap,
.login-field__input-wrap--error {
    border-color: #ef4444;
}

.login-field--has-error .login-field__input-wrap:focus-within,
.login-field__input-wrap--error:focus-within {
    border-color: #ef4444;
}

.login-field__error {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.3;
    color: #ef4444;
}

.login-field__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #373737;
}

.login-field__input::placeholder {
    color: #a1a1aa;
}

.login-field__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.login-field__toggle svg {
    width: 18px;
    height: 18px;
}

.login-forgot {
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: right;
    color: #373737;
    text-decoration: none;
}

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

.login-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 120px;
    min-width: 279px;
    height: 42px;
    background: var(--color-btn);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    /* color: #ffffff; */
}

.login-btn:hover {
    background: var(--color-btn-hover);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn__text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    line-height: 0.9;
    color: #ffffff;
}

.login-footer {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #373737;
}

.login-footer__link {
    font-weight: 600;
    color: #373737;
    text-decoration: underline;
}

.login-footer__link:hover {
    color: #1e293b;
}

.login-alert {
    width: 100%;
    max-width: 624px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 20px;
}

.login-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.login-alert--success {
    background: #f2fef3;
    border: 1px solid #cafed0;
    color: #21b91c;
}

@media (max-width: 640px) {
    .login-container {
        gap: 48px;
    }

    .login-card-scallop__circle:nth-child(n + 10) {
        display: none;
    }

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

    .login-btn {
        width: 100%;
        min-width: unset;
        padding: 16px 48px;
    }
}