/**
 * Auth pages — login & register (Solid Design)
 */

.satoads-auth-page {
    margin: 0;
    min-height: 100vh;
    background: var(--satoads-bg);
}

.satoads-auth-shell {
    min-height: 100vh;
}

.satoads-auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.satoads-auth-visual {
    position: relative;
    background: linear-gradient(145deg, #059669 0%, #1d4ed8 55%, #0f172a 100%);
    color: #fff;
    padding: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.satoads-auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.satoads-auth-visual-inner {
    position: relative;
    max-width: 420px;
}

.satoads-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 32px;
    font-size: 1.2rem;
}

.satoads-auth-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.satoads-auth-visual-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.3;
}

.satoads-auth-visual-sub {
    margin: 0 0 28px;
    opacity: 0.9;
    line-height: 1.65;
    font-size: 1rem;
}

.satoads-auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.satoads-auth-features li {
    position: relative;
    padding: 10px 28px 10px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.satoads-auth-features li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    font-weight: 800;
    color: #86efac;
}

.satoads-auth-panel {
    display: flex;
    flex-direction: column;
    padding: 32px 40px;
    background: transparent;
}

.satoads-auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.satoads-auth-home-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--satoads-text-muted);
}

.satoads-auth-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 32px;
    background: var(--satoads-surface, #ffffff);
    border: 1px solid var(--satoads-border, #e2e8f0);
    border-radius: var(--satoads-radius-lg, 20px);
    box-shadow: var(--satoads-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.satoads-auth-title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--satoads-text);
}

.satoads-auth-lead {
    margin: 0 0 28px;
    color: var(--satoads-text-muted);
    font-size: 0.95rem;
}

.satoads-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.satoads-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.satoads-auth-field span {
    font-size: 13px;
    font-weight: 700;
    color: var(--satoads-text);
}

.satoads-auth-field small {
    font-size: 11px;
    color: var(--satoads-text-muted);
}

.satoads-auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--satoads-border, #e2e8f0);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: var(--satoads-input-bg, #f8fafc);
    color: var(--satoads-text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.satoads-auth-input:focus {
    outline: none;
    border-color: var(--satoads-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.satoads-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.satoads-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--satoads-text-muted);
    cursor: pointer;
}

.satoads-auth-forgot {
    font-size: 13px;
    font-weight: 600;
}

.satoads-auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 4px;
}

.satoads-auth-switch {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--satoads-text-muted);
}

.satoads-auth-switch a {
    font-weight: 700;
}

.satoads-auth-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.satoads-auth-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.satoads-auth-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.satoads-auth-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

[data-theme="dark"] .satoads-auth-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

[data-theme="dark"] .satoads-auth-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #86efac;
}

@media (max-width: 900px) {
    .satoads-auth-wrap {
        grid-template-columns: 1fr;
    }

    .satoads-auth-visual {
        padding: 32px 24px;
        min-height: auto;
    }

    .satoads-auth-features {
        display: none;
    }

    .satoads-auth-panel {
        padding: 24px 20px 40px;
    }

    .satoads-auth-card {
        padding: 28px 20px;
    }
}
