:root {
    --bg: #0a0e17; /* Fondo más oscuro y profundo */
    --card-bg: #111827; /* Fondo de tarjetas */
    --primary: #00ff88; /* Verde neón de tu logo */
    --primary-hover: #00cc6a;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --border-color: #1f2937;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

.center-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* === LOGIN STYLES === */
.login-card {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid var(--border-color);
}

.logo-area {
    margin-bottom: 1.5rem;
}

.login-logo {
    max-width: 220px; /* Ajusta este valor si lo ves muy grande o pequeño */
    height: auto;
    display: block;
    margin: 0 auto;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: var(--bg);
    border: 1px solid var(--border-color);
    color: var(--text);
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

button#login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

button#login-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 255, 136, 0.2);
}

.error {
    color: #ef4444;
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 1.2em; /* Para evitar saltos si no hay error */
}

.login-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.login-footer a:hover { text-decoration: underline; }

/* === DASHBOARD STYLES === */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.logo-brand img { display: block; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-display {
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}
.btn-outline:hover {
    border-color: var(--text);
    color: var(--text);
}

.main-content { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; }

.dashboard-header { margin-bottom: 3rem; }
.dashboard-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.dashboard-header .subtitle { color: var(--text-muted); font-size: 1.1rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tool-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.icon-container {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.tool-card h3 { margin: 0 0 1rem 0; font-size: 1.25rem; }
.tool-card p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.5; flex-grow: 1; }

.btn-tool {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-tool:hover {
    background: var(--primary);
    color: #000;
}

.coming-soon { opacity: 0.6; border-style: dashed; }
.coming-soon:hover { transform: none; border-color: var(--border-color); box-shadow: none; }

.auth-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.small-link {
    font-size: 0.85rem;
    opacity: 0.8;
}

.feedback {
    margin-top: 15px;
    font-size: 0.95rem;
    min-height: 1.2em;
    font-weight: 500;
}

.feedback.error { color: #ef4444; }
.feedback.success { color: #00ff88; }

/* =========================================
   ESTILOS BOTONES DE FORMULARIOS (NUEVO)
   ========================================= */

/* Aplicar estilo a los 3 botones de acción */
#btn-login,
#btn-register,
#btn-forgot {
    width: 100%;
    padding: 14px;
    background-color: var(--primary); /* El verde de tu marca */
    color: #000; /* Texto negro para contraste */
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 255, 136, 0.2);
}

/* Efecto Hover (al pasar el ratón) */
#btn-login:hover,
#btn-register:hover,
#btn-forgot:hover {
    background-color: #00cc6a; /* Un verde un poco más oscuro */
    transform: translateY(-2px); /* Se levanta un poco */
    box-shadow: 0 7px 14px rgba(0, 255, 136, 0.3);
}

/* Efecto cuando está cargando (deshabilitado) */
#btn-login:disabled,
#btn-register:disabled,
#btn-forgot:disabled {
    background-color: #334155;
    color: #94a3b8;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Ajuste para los inputs de los formularios nuevos */
#form-register input,
#form-forgot input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: var(--bg);
    border: 1px solid #334155;
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
}

#form-register input:focus,
#form-forgot input:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}