:root {
    --auth-primary: #14806f;
    --auth-primary-dark: #0e6f62;
    --auth-mint: #35d3c3;
    --auth-mint-hover: #55e2d4;
    --auth-deep: #001f29;
    --auth-text: #172033;
    --auth-muted: #667085;
    --auth-border: #dfe7f2;
    --auth-background: #f2f7fb;
    --auth-soft-blue: #dcfaf6;
    --auth-success: #168a54;
    --auth-danger: #b42318;
    --auth-shadow: 0 28px 80px rgba(0, 31, 41, 0.13);
}

.auth-page {
    position: relative;
    min-height: calc(100vh - 155px);
    padding: 50px 0 70px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 6%,
            rgba(53, 211, 195, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 94% 15%,
            rgba(0, 31, 41, 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            var(--auth-background)
        );
}

.auth-page::before {
    position: absolute;
    top: 8%;
    right: 5%;
    width: 330px;
    height: 330px;
    border: 52px solid rgba(53, 211, 195, 0.05);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-container {
    position: relative;
    z-index: 2;
    width: min(540px, calc(100% - 40px));
    margin: 0 auto;
}

.auth-card {
    overflow: hidden;
    border: 1px solid #cddbef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--auth-shadow);
}

.auth-form-panel {
    min-width: 0;
    padding: 42px;
}

.auth-form-header {
    margin-bottom: 24px;
}

.auth-form-title {
    margin: 0;
    color: var(--auth-deep);
    font-size: clamp(28px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.auth-alert {
    margin-bottom: 19px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.auth-alert-success {
    border: 1px solid #addfc3;
    background: #edf9f2;
    color: #157347;
}

.auth-alert-danger {
    border: 1px solid #f1b8bd;
    background: #fff3f4;
    color: var(--auth-danger);
}

.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-deep);
    font-size: 13px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-primary);
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 10px 45px 10px 45px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    outline: 0;
    background: #ffffff;
    color: var(--auth-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-input::placeholder {
    color: #98a2b3;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(53, 211, 195, 0.1);
}

.auth-input.is-invalid {
    border-color: #e48a94;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-size: 17px;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    background: var(--auth-soft-blue);
    color: var(--auth-primary);
}

.auth-error {
    margin-top: 6px;
    color: var(--auth-danger);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.auth-helper {
    margin-top: 6px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 3px 0 21px;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.auth-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--auth-primary);
}

.auth-link {
    color: var(--auth-primary);
    font-size: 13px;
    font-weight: 700;
}

.auth-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 53px;
    padding: 11px 17px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        var(--auth-mint-hover),
        var(--auth-mint)
    );
    color: var(--auth-deep);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 27px rgba(53, 211, 195, 0.21);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-submit:hover {
    background: var(--auth-mint-hover);
    box-shadow: 0 15px 32px rgba(53, 211, 195, 0.27);
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    height: 1px;
    background: var(--auth-border);
    content: "";
}

.auth-switch {
    padding: 15px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #f8fafc;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.auth-switch a {
    color: var(--auth-primary);
    font-weight: 700;
}

.auth-terms {
    margin: 3px 0 21px;
    padding: 13px;
    border: 1px solid var(--auth-border);
    border-radius: 11px;
    background: #f8fafc;
}

@media (max-width: 767.98px) {
    .auth-page {
        padding: 40px 0 58px;
    }

    .auth-container {
        width: min(100% - 28px, 540px);
    }

    .auth-form-panel {
        padding: 28px 22px;
    }

    .auth-form-title {
        font-size: 27px;
    }

}

@media (max-width: 480px) {
    .auth-card {
        border-radius: 19px;
    }

    .auth-form-panel {
        padding: 26px 18px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

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

