.fds-login-modal {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;

    border-radius: 28px;
    background: #FFFFFF;
    box-sizing: border-box;
}

.fds-login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fds-login-form__title {
    margin: 0;
    text-align: center;
    font-size: 38px;
    line-height: 1.16;
    font-weight: 600;
    color: #2D2D2D;
}

.fds-register-form .fds-login-form__title {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 36px;
    line-height: 1.16;
}

.fds-register-form .fds-login-form__title span {
    color: #8C83FC;
}

.fds-login-form__description {
    max-width: 100%;
    margin: -8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #64748B;
}

.fds-login-form__alert {
    display: none;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.fds-login-form__alert.is-visible {
    display: block;
}

.fds-login-form__alert.is-error {
    background: rgba(216, 0, 39, 0.08);
    color: #D80027;
    border: 1px solid rgba(216, 0, 39, 0.16);
}

.fds-login-form__alert.is-success {
    background: rgba(140, 131, 252, 0.08);
    color: #6E63F6;
    border: 1px solid rgba(140, 131, 252, 0.18);
}

.fds-login-form__field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fds-login-form__label {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;
    color: #606060;
}

.fds-login-form__input {
    width: 100%;
    height: 58px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid #CFCFCF;
    background: #FFFFFF;
    color: #2D2D2D;
    font-size: 16px;
    line-height: 1.4;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fds-login-form__input::placeholder {
    color: #A0A0A0;
}

.fds-login-form__input:focus {
    border-color: rgba(140, 131, 252, 0.7);
    box-shadow: 0 0 0 3px rgba(140, 131, 252, 0.12);
}

.fds-login-form__input.is-invalid {
    border-color: #D80027;
}

.fds-login-form__password-wrap {
    position: relative;
}

.fds-login-form .fds-login-form__toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #7C7C7C;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.fds-login-form .fds-login-form__toggle:hover {
    color: #6E63F6;
}

.fds-login-form__input--password {
    padding-right: 96px;
}

.fds-login-form__error {
    min-height: 16px;
    font-size: 11px;
    line-height: 1.4;
    color: #D80027;
}

.fds-login-form__helper-text {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #606060;
}

.fds-register-form .fds-login-form__checkbox-wrap {
    margin-top: 4px;
}

.fds-register-form .fds-login-form__checkbox-text {
    color: #2D2D2D;
    font-size: 15px;
    line-height: 1.55;
}

.fds-register-form .fds-login-form__checkbox-text a {
    color: #2D2D2D;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fds-register-form .fds-login-form__checkbox-text a:hover {
    color: #6E63F6;
}

.fds-register-form .fds-login-form__checkbox-label--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fds-login-form__forgot-wrap {
    margin-top: -4px;
    text-align: right;
}

.fds-login-form__forgot,
.fds-login-form__bottom-text a {
    color: #2D2D2D;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fds-login-form__forgot:hover,
.fds-login-form__bottom-text a:hover {
    color: #6E63F6;
}

.fds-login-form__submit {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 64px;
    padding: 16px 24px;
    border: 0;
    border-radius: 16px;
    background: #8C83FC;
    color: #FFFFFF!important;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.fds-login-form__submit:hover {
    background: #7C72F8;
    transform: translateY(-1px);
}

.fds-login-form__submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.fds-login-form__submit-arrow {
    display: none;
}

.fds-login-form__bottom-text {
    text-align: left;
    font-size: 15px;
    line-height: 1.55;
    color: #2D2D2D;
}

.fds-login-form__logged-in {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(140, 131, 252, 0.08);
    color: #6E63F6;
}

.fds-login-form__separator {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin-top: 34px;
    color: #606060;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

.fds-login-form__separator::before,
.fds-login-form__separator::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #D9D9D9;
}

.fds-login-form__secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    margin-top: 14px;
    padding: 16px 24px;
    border: 1px solid #8C83FC;
    border-radius: 16px;
    background: #FFFFFF;
    color: #8C83FC;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fds-login-form__secondary-button:hover {
    background: rgba(140, 131, 252, 0.06);
    color: #7C72F8;
    border-color: #7C72F8;
}

.fds-login-form--error-state {
    gap: 22px;
}

.fds-login-form--error-state .fds-login-form__title {
    color: #E4002B;
    text-align: center;
    font-size: 30px;
}

.fds-login-form--error-state .fds-login-form__description {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    color: #64748B;
}

.fds-login-form--error-state .fds-login-form__submit {
    max-width: 170px;
    min-height: 52px;
    margin: 0 auto;
    font-size: 18px;
}

@media (max-width: 767px) {
    .fds-login-modal {
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 22px;
    }

    .fds-login-form {
        gap: 8px;
    }

    .fds-login-form__title,
    .fds-register-form .fds-login-form__title {
        font-size: 28px;
    }

    .fds-login-form__input {
        height: 52px;
        padding: 0 16px;
        font-size: 15px;
    }

    .fds-login-form__input--password {
        padding-right: 84px;
    }

    .fds-login-form .fds-login-form__toggle {
        right: 14px;
        font-size: 13px;
    }

    .fds-login-form__submit,
    .fds-login-form__secondary-button {
        min-height: 56px;
        font-size: 18px;
        border-radius: 14px;
    }

    .fds-login-form__separator {
        margin-top: 22px;
        gap: 14px;
        font-size: 16px;
    }

    .fds-login-form__bottom-text,
    .fds-register-form .fds-login-form__checkbox-text,
    .fds-login-form__label {
        font-size: 14px;
    }
}