.auth-body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 18px 20px 0;
    display: flex;
    flex-direction: column;
}

.auth-link {
    color: var(--ddb-primary);
}

.auth-home-link {
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 999px;
    background: #fff;
    color: rgba(44, 62, 80, 0.72);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(44, 62, 80, 0.12);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.auth-home-link:hover,
.auth-home-link:focus {
    background: rgba(26, 188, 156, 0.12);
    color: var(--ddb-primary);
    transform: translateX(-2px);
}

.auth-home-link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-page {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 3vh, 34px) 16px 28px;
}

.auth-logo {
    width: 118px;
    height: 103px;
    margin-bottom: 28px;
    border-radius: 9px;
    overflow: hidden;
}

.auth-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-card {
    width: min(438px, 100%);
    min-height: 510px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--ddb-shadow);
}

.auth-card-inner {
    width: min(340px, calc(100% - 44px));
    margin: 0 auto;
    padding-top: 22px;
    padding-bottom: 30px;
}

.auth-card h1 {
    margin: 0 0 22px;
    color: var(--ddb-text);
    font-size: 27px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.auth-form {
    font-size: 16px;
}

.auth-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1100;
    display: grid;
    width: min(360px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}

.auth-toast {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 16px 34px rgba(44, 62, 80, 0.18);
    font-family: "Fredoka", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
}

.auth-toast-success {
    background: var(--ddb-primary);
}

.auth-toast-error {
    background: #dc3545;
}

.auth-toast i {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
}

.auth-toast-success i {
    color: var(--ddb-primary);
}

.auth-toast-error i {
    color: #dc3545;
}

.auth-toast span {
    min-width: 0;
    color: inherit;
}

.auth-input::placeholder {
    opacity: 1;
}

.auth-input {
    height: 42px;
    line-height: 1.25;
}

.auth-input:focus {
    border-color: transparent;
    box-shadow:
        var(--ddb-shadow),
        0 0 0 0.25rem rgba(26, 188, 156, 0.18);
}

.auth-password-field {
    position: relative;
}

.auth-password-field .auth-input {
    padding-right: 52px;
}

.auth-password-field .auth-input.is-invalid {
    background-image: none;
    padding-right: 52px;
}

.auth-password-field .auth-input[type="password"]:not(:placeholder-shown) {
    font-size: 20px;
    letter-spacing: 1.5px;
}

.auth-password-toggle {
    position: absolute;
    top: 1px;
    right: 4px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(44, 62, 80, 0.72);
    padding: 0;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    background: rgba(26, 188, 156, 0.1);
    color: var(--ddb-primary);
}

.auth-password-toggle:focus {
    outline: 0;
}

.auth-password-toggle svg {
    grid-area: 1 / 1;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

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

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

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

.auth-card .btn {
    min-height: 42px;
}

.auth-social {
    display: grid;
    gap: 0;
    margin-top: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 17px 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.auth-social .social-btn {
    --bs-btn-color: var(--ddb-text);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #13977d;
    --bs-btn-hover-bg: rgba(26, 188, 156, 0.06);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #117d69;
    --bs-btn-active-bg: rgba(26, 188, 156, 0.1);
    --bs-btn-active-border-color: rgba(26, 188, 156, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--ddb-text);
    box-shadow: var(--ddb-shadow);
}

.auth-social .social-btn + .social-btn {
    margin-top: 20px;
}

.auth-social .social-btn:hover,
.auth-social .social-btn:focus {
    background: rgba(26, 188, 156, 0.06);
    color: #13977d;
    box-shadow:
        0 0 0 1px rgba(26, 188, 156, 0.16),
        0 8px 18px rgba(44, 62, 80, 0.08);
}

.auth-social .social-btn:active,
.auth-social .social-btn.active,
.auth-social .social-btn:first-child:active {
    border-color: rgba(26, 188, 156, 0.2);
    background: rgba(26, 188, 156, 0.1);
    color: #117d69;
    box-shadow: 0 0 0 1px rgba(26, 188, 156, 0.18);
}

.auth-social .social-btn img {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.auth-social .social-btn .apple-logo {
    filter: brightness(0);
}

.auth-footer {
    width: 100%;
    min-width: 0;
    padding-bottom: 11px;
    color: var(--ddb-text);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.auth-footer p {
    margin: 0;
}

@media (min-width: 1600px) {
    .auth-body {
        padding: 22px 28px 0;
    }

    .auth-home-link {
        min-height: 40px;
        gap: 8px;
        padding: 0 14px;
        font-size: 15px;
    }

    .auth-home-link svg {
        width: 17px;
        height: 17px;
    }

    .auth-page {
        padding-top: clamp(28px, 3vh, 42px);
        padding-bottom: 36px;
    }

    .auth-logo {
        width: 128px;
        height: 112px;
        margin-bottom: 30px;
    }

    .auth-card {
        width: min(470px, 100%);
        min-height: 540px;
        border-radius: 26px;
    }

    .auth-card-inner {
        width: min(360px, calc(100% - 52px));
        padding-top: 26px;
        padding-bottom: 34px;
    }

    .auth-card h1 {
        margin-bottom: 24px;
        font-size: 30px;
    }

    .auth-form {
        font-size: 16px;
    }

    .auth-input,
    .auth-card .btn {
        height: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    .auth-password-field .auth-input {
        padding-right: 54px;
    }

    .auth-password-field .auth-input.is-invalid {
        padding-right: 54px;
    }

    .auth-password-field .auth-input[type="password"]:not(:placeholder-shown) {
        font-size: 20px;
        letter-spacing: 1.5px;
    }

    .auth-password-toggle {
        top: 2px;
        right: 5px;
        width: 40px;
        height: 40px;
    }

    .auth-password-toggle svg {
        width: 20px;
        height: 20px;
    }

    .auth-divider {
        font-size: 16px;
    }

    .auth-social {
        margin-top: 20px;
    }

    .auth-card .social-btn img {
        width: 30px;
        height: 30px;
    }

    .auth-footer {
        padding-bottom: 16px;
        font-size: 16px;
    }
}

@media (max-width: 1399.98px) {
    .auth-logo {
        width: 112px;
        height: 98px;
        margin-bottom: 26px;
    }

    .auth-card h1 {
        font-size: 26px;
    }
}

@media (max-width: 1199.98px) {
    .auth-page {
        padding-top: 28px;
        padding-bottom: 34px;
    }

    .auth-card {
        min-height: 500px;
    }

    .auth-card-inner {
        padding-top: 22px;
        padding-bottom: 30px;
    }

    .auth-card h1 {
        margin-bottom: 22px;
        font-size: 26px;
    }

    .auth-footer {
        font-size: 15px;
    }
}

@media (max-width: 991.98px) {
    .auth-body {
        min-width: 320px;
    }

    .auth-page {
        padding: 36px 16px 48px;
    }

    .auth-logo {
        width: 126px;
        height: 110px;
        margin-bottom: 30px;
    }

    .auth-card {
        width: min(438px, 100%);
        min-height: auto;
    }

    .auth-card-inner {
        width: auto;
        padding: 28px 56px 42px;
    }

    .auth-card h1 {
        margin-bottom: 24px;
        font-size: 28px;
    }

    .auth-input,
    .auth-card .btn {
        min-height: 42px;
    }

    .auth-footer {
        padding-bottom: 22px;
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    .auth-page {
        padding-top: 32px;
        padding-bottom: 42px;
    }

    .auth-logo {
        margin-bottom: 26px;
    }

    .auth-card-inner {
        padding-right: 36px;
        padding-left: 36px;
    }

    .auth-card h1 {
        margin-bottom: 22px;
        font-size: 26px;
    }

    .auth-form {
        font-size: 15px;
    }

    .auth-footer {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .auth-body {
        padding: 12px 12px 0;
    }

    .auth-home-link {
        min-height: 34px;
        padding: 0 11px;
        font-size: 13px;
    }

    .auth-home-link svg {
        width: 15px;
        height: 15px;
    }

    .auth-page {
        padding: 26px 4px 36px;
    }

    .auth-logo {
        width: 96px;
        height: 84px;
        margin-bottom: 24px;
    }

    .auth-card {
        width: 100%;
        min-height: 0;
        border-radius: 20px;
    }

    .auth-card-inner {
        width: 100%;
        padding: 24px 20px 30px;
    }

    .auth-card h1 {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .auth-input,
    .auth-card .btn {
        height: 40px;
        min-height: 40px;
        font-size: 14px;
    }

    .auth-password-field .auth-input[type="password"]:not(:placeholder-shown) {
        font-size: 18px;
        letter-spacing: 1.25px;
    }

    .auth-password-toggle {
        top: 0;
    }

    .auth-divider {
        margin: 14px 0;
        font-size: 14px;
    }

    .auth-card .social-btn {
        gap: 8px;
    }

    .auth-social {
        margin-top: 18px;
    }

    .auth-card .social-btn + .social-btn {
        margin-top: 14px;
    }

    .auth-card .social-btn img {
        width: 24px;
        height: 24px;
    }

    .auth-card .social-btn span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .auth-footer {
        padding: 0 16px 18px;
        font-size: 12px;
        line-height: 1.35;
    }
}
