/* Auth: split layout, illustration, card, form, social */

.auth-split {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .auth-split {
        flex-direction: row;
    }
}

.auth-split__left {
    min-height: 220px;
    background: linear-gradient(180deg, rgba(18, 16, 10, 0.98) 0%, rgba(5, 5, 5, 0.99) 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .auth-split__left {
        width: 50%;
        min-height: 100vh;
        background: linear-gradient(135deg, rgba(18, 16, 10, 0.98) 0%, rgba(5, 5, 5, 0.99) 50%, rgba(28, 24, 12, 0.95) 100%);
    }
}

.auth-split__right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 3rem;
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #0d0c0a 100%);
}

@media (min-width: 1024px) {
    .auth-split__right {
        width: 50%;
        padding: 2rem 4rem;
    }
}

.auth-split__right-inner {
    width: 100%;
    max-width: 420px;
}

/* 3D Auth illustration */
.auth-illustration {
    position: absolute;
    inset: 0;
    perspective: 800px;
}

.auth-illustration__bg {
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse 60% 80% at 80% 20%, rgba(251, 191, 36, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.auth-illustration__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: auth-orb-float 8s ease-in-out infinite;
}

.auth-illustration__orb--1 {
    width: 200px;
    height: 200px;
    background: rgba(212, 175, 55, 0.2);
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.auth-illustration__orb--2 {
    width: 160px;
    height: 160px;
    background: rgba(251, 191, 36, 0.15);
    bottom: 25%;
    right: 15%;
    animation-delay: -3s;
}

@keyframes auth-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.98); }
}

.auth-illustration__coin {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.9) 0%, rgba(245, 158, 11, 0.85) 50%, rgba(217, 119, 6, 0.9) 100%);
    box-shadow: 0 4px 12px #fbbf2459, inset 0 1px 0 rgba(255,255,255,0.3);
    animation: auth-coin-float 4s ease-in-out infinite;
}


.auth-illustration__token {
    position: absolute;
    width: 32px;
    height: 32px;

    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    
    clip-path: polygon(
        25% 6%, 
        75% 6%, 
        100% 50%, 
        75% 94%, 
        25% 94%, 
        0% 50%
    );

    box-shadow: 0 4px 12px rgba(251,191,36,.35);
    animation: auth-coin-float 4s ease-in-out infinite;
}


.auth-illustration__diamond {
    position: absolute;
    width: 26px;
    height: 26px;

    background: linear-gradient(145deg,#fbbf24,#f59e0b);

    transform: rotate(45deg);

    box-shadow: 0 4px 12px rgba(251,191,36,.35);
    animation: auth-coin-float 6s ease-in-out infinite;
}






.auth-illustration__block {
    position: absolute;
    width: 28px;
    height: 28px;

    background: linear-gradient(145deg,#fbbf24,#f59e0b);

    border-radius: 6px;

    box-shadow: 0 6px 14px rgba(251,191,36,.35);
    animation: auth-coin-float 8s ease-in-out infinite;
}




.auth-illustration__ring {
    position: absolute;
    width: 32px;
    height: 32px;

    border-radius: 50%;

    border: 4px solid rgba(251,191,36,0.9);

    box-shadow: 0 4px 12px rgba(251,191,36,.35);
    animation: auth-coin-float 4s ease-in-out infinite;
}


.warning-text {
    font-size: 0.8rem;
    font-weight: 500;
    font-size: 0.6rem;
    font-family: math;
    color: palevioletred;
}



.auth-illustration__coin--1 { top: 18%; left: 15%; animation-delay: 0s; }
.auth-illustration__coin--2 { top: 45%; left: 25%; animation-delay: -0.8s; width: 24px; height: 24px; }
.auth-illustration__coin--3 { top: 70%; left: 18%; animation-delay: -1.6s; width: 28px; height: 28px; }
.auth-illustration__coin--4 { top: 25%; right: 20%; animation-delay: -2.4s; width: 26px; height: 26px; }
.auth-illustration__coin--5 { top: 60%; right: 22%; animation-delay: -3.2s; }

@keyframes auth-coin-float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-12px) rotateY(10deg); }
}

.auth-illustration__nodes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
}

.auth-illustration__node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.35);
    border: 2px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
    animation: auth-node-pulse 2.5s ease-in-out infinite;
}

.auth-illustration__node:nth-child(1) { animation-delay: 0s; }
.auth-illustration__node:nth-child(2) { animation-delay: 0.2s; }
.auth-illustration__node:nth-child(3) { animation-delay: 0.4s; }
.auth-illustration__node:nth-child(4) { animation-delay: 0.1s; }
.auth-illustration__node:nth-child(5) { animation-delay: 0.3s; }
.auth-illustration__node:nth-child(6) { animation-delay: 0.5s; }

@keyframes auth-node-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); box-shadow: 0 0 20px rgba(212, 175, 55, 0.25); }
    50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 28px rgba(212, 175, 55, 0.4); }
}

.auth-illustration__chart {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.auth-illustration__chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 44px;
}

.auth-illustration__chart-bar {
    flex: 1;
    min-width: 8px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.9) 0%, rgba(251, 191, 36, 0.5) 100%);
    animation: auth-chart-bar 2.2s ease-in-out infinite;
}

.auth-illustration__chart-bar:nth-child(1) { height: 35%; animation-delay: 0s; }
.auth-illustration__chart-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.auth-illustration__chart-bar:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.auth-illustration__chart-bar:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.auth-illustration__chart-bar:nth-child(5) { height: 55%; animation-delay: 0.4s; }
.auth-illustration__chart-bar:nth-child(6) { height: 90%; animation-delay: 0.5s; }
.auth-illustration__chart-bar:nth-child(7) { height: 70%; animation-delay: 0.6s; }

@keyframes auth-chart-bar {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.85); opacity: 0.85; }
}

.auth-illustration__chart-label {
    margin: 6px 0 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

/* Auth card */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 40px -10px rgba(212, 175, 55, 0.15);
}

.auth-card__logo {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #fff;
}

.auth-card__subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    margin: 0 0 1.5rem;
}

.auth-card__footer {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.auth-card__footer a {
    color: rgb(251, 191, 36);
    text-decoration: none;
}

.auth-card__footer a:hover {
    text-decoration: underline;
}

/* Auth form */
.auth-form__group {
    margin-bottom: 1.25rem;
}

.auth-form__group--row {
    margin-bottom: 1rem;
}

.auth-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.375rem;
}

.auth-form__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.auth-form__label-row .auth-form__label {
    margin-bottom: 0;
}

.auth-form__input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-form__input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-form__input:focus {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.auth-form__input-wrap {
    position: relative;
    display: block;
}

.auth-form__input-wrap .auth-form__input {
    padding-right: 2.75rem;
}

.auth-form__password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.2s, background 0.2s;
}

.auth-form__password-toggle:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.auth-form__password-toggle:focus {
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.auth-form__password-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
}

.auth-form__password-toggle-icon[hidden] {
    display: none !important;
}

.auth-form__link {
    font-size: 0.8125rem;
    color: rgb(251, 191, 36);
    text-decoration: none;
}

.auth-form__link:hover {
    text-decoration: underline;
}

.auth-form__checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.auth-form__checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(212, 175, 55);
    cursor: pointer;
}

.auth-form__checkbox-label {
    user-select: none;
}

.auth-form__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0a;
    background: linear-gradient(135deg, rgb(212, 175, 55) 0%, rgb(245, 158, 11) 100%);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 0.25rem;
}

.auth-form__submit:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

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

/* Auth alerts */
.auth-alert {
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-alert--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(134, 239, 172);
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgb(252, 165, 165);
}

.auth-alert--info {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgb(253, 230, 138);
}

/* Password strength (register / reset) */
.auth-password-strength {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-password-strength__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.auth-password-strength__item::before {
    content: '○';
    color: rgba(255, 255, 255, 0.4);
}

.auth-password-strength__item--ok::before {
    content: '✓';
    color: rgb(34, 197, 94);
}

.auth-form__optional {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
}

.auth-form__hint {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
}

.auth-form__hint--error {
    color: rgb(252, 165, 165);
}

/* 2FA page */
.auth-form__input--code {
    text-align: center;
    letter-spacing: 0.25em;
    font-variant-numeric: tabular-nums;
}

.auth-2fa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.auth-2fa-timer {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.auth-2fa-resend {
    background: none;
    border: none;
    color: rgb(251, 191, 36);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0;
}

.auth-2fa-resend:hover:not(:disabled) {
    text-decoration: underline;
}

.auth-2fa-resend:disabled {
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Auth social */
.auth-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.auth-social__telegram-wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
}
.auth-social__telegram-wrap iframe {
    border: none;
}

.auth-social__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.auth-social__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-social__btn--telegram {
    color: rgb(56, 189, 248);
}

.auth-social__btn--telegram:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.auth-social__btn--google:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-social__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}
