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

html {
    font-size: 16px;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 2vw 2vw;
    background-attachment: fixed;
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
}

.b1 { width: 40vw; height: 40vw; top: -10vw; left: -5vw; }
.b2 { width: 40vw; height: 40vw; top: -10vw; right: -5vw; }
.b3 { width: 40vw; height: 40vw; bottom: -10vw; left: 30%; }

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    max-height: 100vh;
    overflow-y: auto;
}

.auth-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.auth-card {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 36px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
}

.auth-sub {
    font-size: 14px;
    color: #888888;
    margin-top: -16px;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    color: #cccccc;
    font-weight: 500;
}

.input-group input {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: #00d4d4;
}

.input-group input::placeholder {
    color: #444444;
}

.auth-btn {
    background: #00d4d4;
    border: none;
    border-radius: 8px;
    padding: 14px;
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 8px;
}

.auth-btn:hover {
    background: #ffffff;
}

.auth-error {
    font-size: 13px;
    color: #ff4444;
    text-align: center;
    min-height: 20px;
}

.auth-switch {
    font-size: 13px;
    color: #888888;
    text-align: center;
}

.auth-switch a {
    color: #00d4d4;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #ffffff;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888888;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    width: fit-content;
}

.back-btn:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.auth-back:hover {
    color: #ffffff;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888888;
    cursor: pointer;
}

.remember-me input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #444444;
    border-radius: 4px;
    background: #0a0a0a;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.remember-me input:checked {
    background: #00d4d4;
    border-color: #00d4d4;
}

.remember-me input:checked::after {
    content: '✓';
    position: absolute;
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-me label {
    cursor: pointer;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.eye-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.eye-toggle:hover {
    color: #ffffff;
}

.eye-toggle svg {
    stroke: currentColor;
}

.input-error {
    border-color: #ff4444 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.4s ease;
}

@media (max-width: 768px) {
    body {
        background-size: 28px 28px;
    }
}

.password-requirements {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.req {
    font-size: 11px;
    color: #444444;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.2s ease;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 50px;
    padding: 2px 10px;
}

.req.met {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(0, 200, 100, 0.1);
}