.auth-template-body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(125deg, rgba(63, 205, 221, .95) 0%, rgba(99, 139, 231, .95) 44%, rgba(230, 39, 222, .98) 100%);
    color: #222;
}

.auth-template-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-template-bg::before,
.auth-template-bg::after,
.auth-shape {
    content: "";
    position: absolute;
    display: block;
    background: rgba(51, 91, 190, .13);
    filter: blur(.1px);
    transform: rotate(-29deg);
    animation: auth-drift 12s ease-in-out infinite;
}

.auth-template-bg::before {
    width: 360px;
    height: 720px;
    left: -118px;
    top: -170px;
    border-radius: 28px;
}

.auth-template-bg::after {
    width: 470px;
    height: 720px;
    right: -165px;
    top: 135px;
    border-radius: 34px;
    background: rgba(96, 24, 149, .15);
    animation-delay: -4s;
}

.auth-shape {
    width: 390px;
    height: 390px;
    left: 25%;
    bottom: -225px;
    border-radius: 34px;
    background: rgba(255, 255, 255, .10);
    animation-delay: -7s;
}

.auth-template-main {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 16px;
}

.auth-card {
    display: flex;
    flex-direction: column;
    width: min(100%, 430px);
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 10px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 7px 8px 0 rgba(46, 24, 128, .18), 0 26px 70px rgba(44, 35, 99, .24);
    animation: auth-card-in .55s ease both;
}

.auth-card-login {
    min-height: 620px;
    padding: 58px 46px 42px;
}

.auth-card-register {
    width: min(100%, 780px);
    padding: 38px 42px 34px;
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 34px;
    text-align: center;
}

.auth-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.auth-logo-full {
    width: min(100%, 300px);
    height: auto;
    max-height: 98px;
}

.auth-title {
    margin: 0;
    color: #202124;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.auth-subtitle {
    margin: 0;
    color: #7b7f8a;
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-section {
    display: grid;
    gap: 16px;
}

.auth-section-title {
    margin: 2px 0 -4px;
    color: #222;
    font-size: 14px;
    font-weight: 700;
}

.auth-grid {
    display: grid;
    gap: 18px 22px;
}

.auth-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-label {
    color: #444851;
    font-size: 13px;
    font-weight: 500;
}

.auth-input-line {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    border-bottom: 2px solid #e3e4e8;
    transition: border-color .18s ease, transform .18s ease;
}

.auth-input-line:focus-within {
    border-color: #c72ce8;
    transform: translateY(-1px);
}

.auth-input-line i {
    color: #a8acb5;
    font-size: 16px;
}

.auth-input-line input,
.auth-input-line textarea,
.auth-input-line select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #24262d;
    font-size: 14px;
}

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

.auth-input-line select {
    height: 42px;
    color: #24262d;
    font-size: 13px;
}

.auth-phone-line {
    grid-template-columns: 28px minmax(120px, 150px) minmax(0, 1fr);
    column-gap: 8px;
}

.auth-phone-line select {
    border-right: 1px solid #e5e7eb;
    padding-right: 8px;
}

.auth-input-line textarea {
    min-height: 76px;
    padding: 11px 0 8px;
    resize: vertical;
}

.auth-input-line input::placeholder,
.auth-input-line textarea::placeholder {
    color: #a2a6af;
}

.auth-error-text {
    color: #dc2626;
    font-size: 12px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 13px;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.auth-alert-success {
    background: #ecfdf5;
    color: #047857;
}

.auth-trial-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #047857;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.45;
}

.auth-trial-note i {
    margin-top: 1px;
}

.auth-link-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
}

.auth-link {
    color: #666b75;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    color: #c72ce8;
}

.auth-gradient-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #47d3d6 0%, #9881ee 50%, #e525da 100%);
    box-shadow: 0 9px 18px rgba(217, 37, 215, .20);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease;
}

.auth-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 24px rgba(217, 37, 215, .26);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    color: #777c86;
    font-size: 13px;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eceef2;
}

.auth-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.auth-social {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .16);
}

.auth-social-facebook { background: #3157a4; }
.auth-social-twitter { background: #32a9e6; }
.auth-social-google { background: #dd4b39; }

.auth-bottom {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 42px;
    text-align: center;
}

.auth-bottom p {
    margin: 0;
    color: #777c86;
    font-size: 13px;
}

.auth-bottom a {
    color: #3e424b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.auth-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-plan {
    display: grid;
    gap: 7px;
    min-height: 128px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 13px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 41, 55, .08);
}

.auth-plan:has(input:checked) {
    border-color: #d42de0;
    box-shadow: 0 0 0 2px rgba(212, 45, 224, .16);
}

.auth-plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-plan-name {
    color: #23262d;
    font-size: 14px;
    font-weight: 700;
}

.auth-plan-price {
    color: #d42de0;
    font-size: 17px;
    font-weight: 700;
}

.auth-plan-meta {
    color: #777c86;
    font-size: 12px;
    line-height: 1.45;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes auth-drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-29deg);
    }
    50% {
        transform: translate3d(18px, -12px, 0) rotate(-26deg);
    }
}

@media (max-width: 767px) {
    .auth-template-main {
        align-items: start;
        padding: 20px 14px;
    }

    .auth-card-login,
    .auth-card-register {
        min-height: auto;
        padding: 34px 24px 28px;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-grid-2,
    .auth-plan-grid {
        grid-template-columns: 1fr;
    }

    .auth-phone-line {
        grid-template-columns: 28px minmax(0, 1fr);
        row-gap: 4px;
    }

    .auth-phone-line select,
    .auth-phone-line input {
        grid-column: 2;
    }

    .auth-phone-line select {
        border-right: 0;
        border-bottom: 1px solid #eceef2;
    }

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

@media (prefers-reduced-motion: reduce) {
    .auth-template-bg::before,
    .auth-template-bg::after,
    .auth-shape,
    .auth-card,
    .auth-gradient-btn {
        animation: none;
        transition: none;
    }
}
