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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

/* Layout: left + right */
.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* Left side: neural canvas */
.auth-left {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.auth-left-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    pointer-events: none;
}

.auth-left-overlay .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    pointer-events: auto;
}

.auth-left-overlay .logo img { width: 40px; height: 40px; }
.auth-left-overlay .logo-text { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.auth-left-overlay .logo-text span { color: #ccff00; }

.auth-left-text {
    max-width: 400px;
}

.auth-left-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-left-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* Right side: form */
.auth-right {
    width: 480px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #111;
    border-left: 1px solid rgba(255,255,255,0.06);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
}

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

.tab.active {
    background: #ccff00;
    color: #0a0a0a;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.6);
}

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

.field input::placeholder {
    color: rgba(255,255,255,0.25);
}

.field input:focus {
    border-color: #ccff00;
}

.field-pw {
    position: relative;
}

.field-pw input {
    padding-right: 44px;
}

.pw-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.3);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.pw-toggle:hover {
    color: #ccff00;
}

.error-msg {
    font-size: 13px;
    color: #EA2027;
    min-height: 20px;
    margin-bottom: 8px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #ccff00;
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #d4ff33;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.divider span {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-google:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #ccff00;
    text-decoration: none;
    transition: all 0.2s;
}

.forgot-link:hover {
    color: #d4ff33;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.forgot-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin-bottom: 24px;
}

.forgot-msg-ok {
    font-size: 14px;
    color: #ccff00;
    min-height: 20px;
    margin-bottom: 12px;
    font-weight: 500;
}

.terms {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    margin-top: 20px;
}

/* Mobile */
@media (max-width: 900px) {
    .auth-layout { flex-direction: column; }
    .auth-left {
        height: 200px;
        flex: none;
    }
    .auth-left-overlay { padding: 20px 24px; }
    .auth-left-text { display: none; }
    .auth-right {
        width: 100%;
        min-height: auto;
        flex: 1;
        padding: 24px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
    }
}
