body.smm-auth-view {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(94, 234, 212, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.14), transparent 30%),
    var(--bg-base);
}

body.smm-auth-view .smm-auth-site-main {
    min-height: 100vh;
}

.smm-auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
}

.smm-auth-page__visual {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(140deg, rgba(10, 19, 33, 0.92), rgba(12, 31, 48, 0.78)),
        linear-gradient(135deg, #0f172a, #12324b 48%, #0a7c86);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: stretch;
}

[data-theme="light"] .smm-auth-page__visual {
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(232, 240, 247, 0.82)),
        linear-gradient(135deg, #f7fafc, #e2ecf5 48%, #c7f9f1);
}

.smm-auth-page__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.16), rgba(5, 10, 18, 0.58));
}

[data-theme="light"] .smm-auth-page__visual-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(226, 232, 240, 0.34));
}

.smm-auth-page__visual-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 18px;
    padding: clamp(28px, 5vw, 56px);
    opacity: 0.4;
}

.smm-auth-page__visual-grid span {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(6px);
    transform: rotate(-8deg);
}

.smm-auth-page__visual-grid span:nth-child(2n) {
    transform: rotate(8deg) translateY(20px);
}

.smm-auth-page__visual-content {
    position: relative;
    z-index: 1;
    padding: clamp(32px, 5vw, 56px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.smm-auth-page__brand {
    display: inline-flex;
    align-items: center;
    color: #fff;
}

.smm-auth-page__brand .custom-logo {
    height: 44px;
    width: auto;
}

.smm-auth-page__brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

[data-theme="light"] .smm-auth-page__brand,
[data-theme="light"] .smm-auth-page__brand-text,
[data-theme="light"] .smm-auth-page__visual-copy h1 {
    color: #0f172a;
}

[data-theme="light"] .smm-auth-page__eyebrow,
[data-theme="light"] .smm-auth-page__visual-copy p,
[data-theme="light"] .smm-auth-page__points li {
    color: #475569;
}

.smm-auth-page__visual-copy {
    max-width: 640px;
}

.smm-auth-page__eyebrow,
.smm-auth-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.smm-auth-page__eyebrow {
    color: rgba(255,255,255,0.74);
}

.smm-auth-page__visual-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    color: #fff;
}

.smm-auth-page__visual-copy p {
    max-width: 540px;
    margin: 0 0 22px;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.smm-auth-page__points {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.smm-auth-page__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
}

.smm-auth-page__point-icon {
    width: 18px;
    height: 18px;
    color: #67e8f9;
}

.smm-auth-page__panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 42px);
    background: linear-gradient(180deg, rgba(7, 15, 24, 0.98), rgba(11, 23, 34, 0.94));
}

[data-theme="light"] .smm-auth-page__panel {
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(236, 242, 247, 0.96));
}

.smm-auth-close {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: var(--text-1);
    z-index: 50;
}

[data-theme="light"] .smm-auth-close {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255,255,255,0.82);
}

.smm-auth-close__icon {
    width: 18px;
    height: 18px;
}

.smm-auth-card {
    width: min(100%, 520px);
    max-width: 520px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(7, 15, 24, 0.72);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(22px);
}

[data-theme="light"] .smm-auth-card {
    background: rgba(255,255,255,0.88);
    border-color: rgba(15, 23, 42, 0.08);
}

.smm-auth-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.smm-auth-card__head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.smm-auth-card__head p {
    margin: 0;
    max-width: 320px;
}

.smm-auth-card__switch {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    min-width: 140px;
}

.smm-auth-card__switch span {
    font-size: 12px;
    color: var(--text-3);
}

.smm-auth-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.smm-auth-notice p {
    margin: 0;
}

.smm-auth-notice--success {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.3);
    color: #d1fae5;
}

.smm-auth-notice--danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.smm-auth-notice--warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fde68a;
}

[data-theme="light"] .smm-auth-notice--success { color: #166534; }
[data-theme="light"] .smm-auth-notice--danger { color: #991b1b; }
[data-theme="light"] .smm-auth-notice--warning { color: #92400e; }

.smm-auth-panels {
    position: relative;
}

.smm-auth-panel {
    display: none;
}

.smm-auth-panel.is-active {
    display: block;
}

.smm-auth-panel__head h3 {
    margin: 0 0 8px;
}

.smm-auth-panel__head p {
    margin: 0 0 16px;
}

.smm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smm-auth-form__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
}

.smm-auth-input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255,255,255,0.06);
    color: var(--text-1);
}

[data-theme="light"] .smm-auth-input {
    background: rgba(255,255,255,0.96);
}

.smm-auth-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.64);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.smm-input-wrap {
    position: relative;
}

.smm-input-wrap--password .smm-auth-input {
    padding-right: 56px;
}

.smm-icon-btn--xs {
    min-width: 32px;
    min-height: 32px;
    padding: 4px;
}

.smm-icon-btn--xs svg {
    width: 14px;
    height: 14px;
}

.smm-auth-form--signup {
    gap: 12px;
}

.smm-auth-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.smm-auth-inline-actions--signup {
    margin-top: -2px;
}

.smm-auth-inline-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.smm-auth-inline-input__field {
    min-width: 0;
}

.smm-auth-inline-btn {
    min-height: 56px;
    padding-inline: 18px;
}

.smm-auth-field-note {
    min-height: 18px;
    margin: -4px 0 2px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-3);
}

.smm-auth-field-note.is-success {
    color: #4ade80;
}

.smm-auth-field-note.is-error {
    color: #fca5a5;
}

.smm-auth-field-note.is-warning {
    color: #fcd34d;
}

.smm-auth-field-note.is-muted {
    color: var(--text-3);
}

[data-theme="light"] .smm-auth-field-note.is-success {
    color: #15803d;
}

[data-theme="light"] .smm-auth-field-note.is-error {
    color: #b91c1c;
}

[data-theme="light"] .smm-auth-field-note.is-warning {
    color: #b45309;
}

.smm-auth-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.smm-auth-verified-badge__icon {
    width: 16px;
    height: 16px;
}

[data-theme="light"] .smm-auth-verified-badge {
    color: #166534;
    background: rgba(34, 197, 94, 0.1);
}

.smm-auth-countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: -2px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #bae6fd;
}

.smm-auth-countdown__label {
    font-size: 12px;
    color: inherit;
}

.smm-auth-countdown__time {
    font-size: 13px;
    letter-spacing: 0.08em;
}

.smm-auth-countdown.is-hidden {
    display: none;
}

[data-theme="light"] .smm-auth-countdown {
    color: #0f766e;
}

.smm-auth-link {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #67e8f9;
    font-weight: 600;
    cursor: pointer;
}

.smm-auth-link--secondary {
    margin-top: 18px;
}

.smm-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--text-3);
    font-size: 12px;
}

.smm-auth-divider::before,
.smm-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
}

.smm-auth-card__footer {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.smm-auth-card__footer-link {
    color: var(--text-3);
    font-size: 13px;
}

.smm-auth-page .smsr-social-buttons {
    margin-top: 18px;
}

.smm-auth-page .smsr-social-btn {
    min-height: 52px;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
}

.smm-auth-page .smsr-social-divider {
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .smm-auth-page {
        grid-template-columns: 1fr;
    }

    .smm-auth-page__visual {
        min-height: 320px;
    }

    .smm-auth-page__panel {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 86px;
        padding-bottom: 24px;
    }

    .smm-auth-card {
        width: min(100%, 560px);
        max-width: 560px;
        margin-inline: auto;
    }
}

@media (max-width: 782px) {
    .smm-auth-inline-input {
        grid-template-columns: 1fr;
    }

    .smm-auth-inline-btn {
        width: 100%;
    }

    .smm-auth-inline-actions {
        align-items: stretch;
    }

    .smm-auth-page__panel {
        padding: 78px 14px 18px;
    }

    .smm-auth-card {
        width: 100%;
        border-radius: 22px;
        padding: 22px 18px;
    }

    .smm-auth-close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
    }

    .smm-auth-card__head {
        flex-direction: column;
    }

    .smm-auth-card__switch {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }

    .smm-auth-page__visual-content {
        padding: 24px 18px;
    }
}
