:root {
    --bg-dark: #09080f;
    --bg-card: #141221;
    --purple: #8b6eff;
    --text-main: #ffffff;
    --text-muted: #9e9bb0;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

.simple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    border-bottom: 1px solid var(--border);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.back-link:hover {
    color: white;
}

.logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.spacer {
    width: 65px;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    width: 100%;
    max-width: 410px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #0d0b17;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 22px;
}

.auth-tab {
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.auth-tab.active {
    background: var(--purple);
    color: white;
}

.auth-card h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.auth-card > p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

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

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

.auth-btn.google {
    background: #ffffff;
    color: #111111;
}

.auth-btn.apple {
    background: #000000;
    color: #ffffff;
    border-color: #333333;
}

.auth-btn:hover {
    opacity: 0.9;
}

.divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.divider span {
    background: var(--bg-card);
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
}

#auth-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 12px 0 6px;
}

#auth-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0d0b17;
    color: white;
    font-size: 0.9rem;
}

#auth-form input:focus {
    outline: none;
    border-color: var(--purple);
}

.error-msg {
    color: #fb7185;
    font-size: 0.82rem;
    margin-top: 10px;
    min-height: 18px;
}

.full-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-purple {
    background: var(--purple);
    color: white;
    box-shadow: 0 8px 25px rgba(139, 110, 255, 0.35);
}

.btn-primary-purple:hover {
    background: #7755fa;
}
