/* Variables CSS */
:root {
    --primary-color: #FF4655;
    --secondary-color: #0F1923;
    --accent-color: #1E2D3B;
    --text-primary: #FFFFFF;
    --text-secondary: #76808C;
    --background-color: #0A0E1A;
    --card-background: rgba(30, 45, 59, 0.8);
    --focus-color: #FF4655;
    --success-color: #00D9FF;
    --warning-color: #FFA500;
    --error-color: #FF4655;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Contenedor principal */
#app {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Botones */
button {
    background-color: var(--primary-color);
    color: var(--text-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #E03E48;
}

button:focus {
    outline: none;
}

button.btn-secondary {
    background-color: var(--accent-color);
}

button.btn-secondary:hover {
    background-color: #2A3F52;
}

button.btn-danger {
    background-color: var(--error-color);
}

button.btn-danger:hover {
    background-color: #CC3344;
}

/* Inputs */
input {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

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

input::placeholder {
    color: var(--text-secondary);
}

/* Enlaces */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #E03E48;
}

/* Utilidades */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Selectores mejorados */
select {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    cursor: pointer;
}

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

select option {
    background-color: var(--secondary-color);
    color: var(--text-primary);
}

/* Textarea */
textarea {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    resize: vertical;
    min-height: 100px;
}

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

textarea::placeholder {
    color: var(--text-secondary);
}

#app {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* ESTOS SON LOS ESTILOS DE CENTRADO */
    display: flex;
    justify-content: center;
    align-items: center;
}


/* En auth/auth.html, dentro de la etiqueta <style> */
.tab {
    cursor: pointer;
    padding: 10px 20px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.tab.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.form-container {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
}

.form-container.active {
    display: block;
}
