:root {
    --bg-dark: #05050a;
    --cyan-neon: #00f3ff;
    --magenta-neon: #d900ff;
    --text-light: #e0e0e0;
    --glass-bg: rgba(10, 10, 25, 0.65);
    --glass-border: rgba(0, 243, 255, 0.2);
}

body { font-family: 'Rajdhani', sans-serif; background-color: var(--bg-dark); color: var(--text-light); display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; overflow-y: auto; padding: 20px; box-sizing: border-box; }

#particles-js { position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; z-index: -1; background: linear-gradient(180deg, #050510 0%, #0a0a20 100%); }

.btn-back-web {
    position: fixed; top: 30px; left: 30px; color: #888; text-decoration: none; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; transition: 0.3s; z-index: 10; background: rgba(0,0,0,0.4); padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(5px);
}
.btn-back-web:hover { color: var(--cyan-neon); border-color: var(--cyan-neon); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }

.auth-container {
    background: var(--glass-bg); padding: 45px 40px; border-radius: 20px; border: 1px solid var(--glass-border); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 243, 255, 0.05); width: 100%; max-width: 420px; text-align: center; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 1; animation: fadeIn 0.6s ease-out; display: none; margin: auto;
}

.active-view { display: block; }

h2 { font-family: 'Orbitron', sans-serif; margin-top: 0; font-size: 34px; letter-spacing: 3px; background: linear-gradient(90deg, var(--cyan-neon), var(--magenta-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 2px; text-shadow: 0 0 20px rgba(0, 243, 255, 0.3); }

.branding { font-size: 11px; color: #888; margin-bottom: 25px; letter-spacing: 2px; font-weight: 500; }

.form-group { margin-bottom: 22px; text-align: left; position: relative; }
label { display: block; margin-bottom: 8px; font-size: 15px; color: #bbb; letter-spacing: 0.5px; }

input[type="text"], input[type="password"], input[type="email"] { width: 100%; padding: 14px 45px 14px 40px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background-color: rgba(0, 0, 0, 0.5); color: white; box-sizing: border-box; font-size: 16px; font-family: 'Rajdhani', sans-serif; transition: all 0.3s ease; }
.icon-left { position: absolute; left: 14px; top: 41px; color: #666; transition: 0.3s; }
.icon-right { position: absolute; right: 14px; top: 41px; color: #888; cursor: pointer; transition: 0.3s; }
.icon-right:hover { color: var(--cyan-neon); text-shadow: 0 0 8px var(--cyan-neon); }

input:focus { outline: none; border-color: var(--cyan-neon); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); background-color: rgba(0, 0, 0, 0.7); }
input:focus ~ .icon-left { color: var(--cyan-neon); }

.extra-controls { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 20px; }
.recordarme-box { display: flex; align-items: center; gap: 8px; color: #bbb; cursor: pointer; }
.recordarme-box input { cursor: pointer; accent-color: var(--cyan-neon); }
.forgot-link, .back-link { color: #888; text-decoration: none; transition: 0.3s; cursor: pointer; }
.forgot-link:hover, .back-link:hover { color: var(--cyan-neon); text-shadow: 0 0 8px var(--cyan-neon); }

.divider { display: flex; align-items: center; text-align: center; margin: 25px 0; color: #666; font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.divider:not(:empty)::before { margin-right: .25em; }
.divider:not(:empty)::after { margin-left: .25em; }

button { width: 100%; padding: 14px; border: 2px solid var(--cyan-neon); border-radius: 8px; background: transparent; color: var(--cyan-neon); font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
button:hover:not(:disabled) { background: var(--cyan-neon); color: #000; box-shadow: 0 0 20px var(--cyan-neon); }
button:disabled { border-color: #444; color: #444; cursor: not-allowed; }

.btn-google { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; display: flex; justify-content: center; align-items: center; gap: 10px; font-family: 'Rajdhani', sans-serif; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 16px; margin-bottom: 10px; }
.btn-google:hover { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }

.no-account-box { margin-top: 25px; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, 0.1); font-size: 14px; color: #aaa; }
.btn-sales { display: inline-flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; width: 100%; padding: 12px; background: rgba(217, 0, 255, 0.08); border: 1px solid rgba(217, 0, 255, 0.3); color: var(--magenta-neon); border-radius: 8px; text-decoration: none; font-weight: 600; font-family: 'Rajdhani', sans-serif; font-size: 15px; transition: 0.3s; }
.btn-sales:hover { background: var(--magenta-neon); color: #000; box-shadow: 0 0 15px rgba(217, 0, 255, 0.4); }

.error-msg { color: #ff4d4d; background-color: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.3); padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; display: none; }
.success-msg { color: #00ff88; background-color: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.3); padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; display: none; }
.welcome-msg { font-size: 15px; color: #bbb; line-height: 1.6; margin-bottom: 25px; border-left: 3px solid var(--magenta-neon); text-align: left; background: rgba(217, 0, 255, 0.05); padding: 15px; border-radius: 0 8px 8px 0; }

.pwd-rules { font-size: 12px; text-align: left; margin-top: -10px; margin-bottom: 20px; background: rgba(0,0,0,0.3); padding: 10px; border-radius: 8px; }
.rule-item { margin: 4px 0; display: flex; align-items: center; gap: 8px; color: #666; transition: 0.3s; }
.rule-item.valid { color: #00ff88; text-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 480px) {
    .btn-back-web { top: 15px; left: 15px; font-size: 13px; padding: 8px 12px; }
    .auth-container { padding: 30px 20px; width: 100%; border-radius: 15px; margin-top: 50px; }
    h2 { font-size: 28px; }
    input[type="text"], input[type="password"], input[type="email"], button { font-size: 15px; }
    .extra-controls { flex-direction: column; gap: 15px; }
}