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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --border: #1e1e2e;
    --text: #e4e4e7;
    --text-dim: #71717a;
    --accent: #dc2626;
    --accent-glow: rgba(220, 38, 38, 0.3);
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.back-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--white);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.logo span {
    color: #ff0033 !important;
}

.subtitle {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 28px;
}

/* Tabs */
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Forms */
.form {
    display: none;
}

.form.active {
    display: block;
}

.field {
    text-align: left;
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.field input:focus {
    border-color: var(--accent);
}

.field input::placeholder {
    color: #52525b;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #ef4444;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.error {
    color: #f87171;
    font-size: 14px;
    margin-top: 16px;
    padding: 10px;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 8px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 20px;
    }
}

/* Password Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 44px !important;
    /* Space for eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--white);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}