:root {
    --primary-gradient: linear-gradient(to right, #ffffff, #979797);
    --secondary-color: #979797;
    --bg-gray: #f0f2f5;
    --text-dark: #333;
    --text-muted: #8c8c8c;
}

/* 1. RESET Y FUENTES */
*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
}

/* 2. REGLA PARA ICONOS (Evita que Roboto rompa Font Awesome) */
.fa, .fas, .far, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
    font-weight: 900 !important; 
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* 3. CONTENEDOR PRINCIPAL */
.auth-container {
    background: white;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. TABS (LOGIN / SIGN UP) */
.auth-tabs {
    display: flex;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-dark);
    background: #fff;
    transition: all 0.3s ease;
}

.tab.active {
    border-bottom: 3px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* 5. FORMULARIO Y BLOQUES DE ENTRADA */
.auth-content {
    padding: 30px;
}

.hidden {
    display: none !important;
}

/* Contenedor gris del input */
.input-box {
    display: flex;
    align-items: center;
    background: #f0f2f5; /* El gris de la imagen */
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid transparent; /* Evita saltos visuales */
    transition: 0.3s ease;
}

.input-box:focus-within {
    background: #e8eaf0;
    border: 1px solid #ddd;
}

/* ELIMINACIÓN DE RECUADROS NEGROS Y BORDES */
.input-box input {
    flex: 1;
    border: none !important;       /* Quita el borde negro */
    background: transparent !important; /* Quita el fondo blanco */
    outline: none !important;      /* Quita el resplandor azul al hacer clic */
    font-size: 15px;
    color: #495057;
    padding: 5px 10px;
}

/* Estilo para el SELECT (Tipo ID) */
.input-box select {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 15px;
    color: #495057;
    margin-left: 5px;
    cursor: pointer;
}

/* Estilo de los Iconos internos */
.input-box i {
    width: 25px;
    text-align: center;
    color: #888;
    font-size: 18px;
}

.eye-icon {
    cursor: pointer;
    margin-left: 10px;
    color: #999;
}

.eye-icon:hover {
    color: var(--secondary-color);
}

/* 6. BOTÓN CON DEGRADADO REDONDEADO */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 25px; /* Más redondeado como la imagen */
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(69, 104, 220, 0.3);
}

.btn-auth:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(69, 104, 220, 0.4);
}

/* 7. FOOTER Y LOGO */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--secondary-color);
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo-container img {
    width: 110px;
    height: auto;
}