* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-card: rgba(26, 26, 26, 0.88);
    --text-primary: #f0f0f0;
    --text-secondary: #9a9a9a;
    --text-muted: #6e6e6e;
    --neon: #ff6a00;
    --accent: #ff6a00;
    --accent-hover: #ff851a;
    --accent-blue: var(--accent);
    --accent-purple: #ff851a;
    --border-color: rgba(255, 255, 255, 0.08);
    --radius: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.45;
}

.auth-page::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.38) 0%, transparent 70%);
    top: -120px;
    left: -80px;
}

.auth-page::after {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 133, 26, 0.22) 0%, transparent 70%);
    bottom: -100px;
    right: -60px;
}

.auth-brand {
    display: none;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    position: relative;
    z-index: 1;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.6) 0%, rgba(10, 14, 23, 0.3) 100%);
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.auth-brand-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.25);
    object-fit: cover;
    display: block;
}

.auth-brand-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-name span {
    -webkit-text-fill-color: var(--accent-blue);
}

.auth-brand-tagline {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    max-width: 380px;
}

.auth-brand-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 32px;
}

.auth-brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-brand-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    flex-shrink: 0;
}

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.auth-home-link {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.auth-home-link:hover {
    color: var(--text-primary);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 106, 0, 0.08);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card-logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-card-logo-mobile .auth-brand-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
}

.auth-card-logo-mobile .auth-brand-name {
    font-size: 22px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.auth-social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.auth-social-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.auth-social-btn.last-used {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.35);
}

.auth-social-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.auth-last-used {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
}

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

.auth-divider span {
    width: 8px;
    height: 8px;
    margin: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-email-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: rgba(10, 14, 23, 0.6);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-input:focus {
    border-color: rgba(255, 106, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

.auth-btn-primary {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: not-allowed;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-btn-primary:not(:disabled),
.auth-btn-primary.auth-btn-active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.35);
}

.auth-btn-primary:not(:disabled):hover,
.auth-btn-primary.auth-btn-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(255, 106, 0, 0.4);
}

.auth-step-password {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-back {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.auth-back:hover {
    color: var(--text-primary);
}

.auth-email-display {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.auth-email-display strong {
    color: var(--text-primary);
    font-weight: 600;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -6px;
}

.auth-error {
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 900px) {
    .auth-brand {
        display: flex;
        max-width: 480px;
    }

    .auth-card-logo-mobile {
        display: none;
    }
}

@media (max-width: 899px) {
    .auth-home-link {
        position: static;
        align-self: flex-start;
        margin-bottom: 16px;
    }

    .auth-main {
        padding: 24px 16px;
    }
}

@media (max-width: 440px) {
    .auth-card {
        padding: 28px 20px 22px;
    }

    .auth-title {
        font-size: 1.35rem;
    }
}
