/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

body {
	background-color: #ffffff;
	font-family: 'Inter', sans-serif;
	min-height: 200px;
}

/* ==========================================================================
   2. SECCIÓN LOGIN / HOME
   ========================================================================== */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
 /*    padding: 120px 20px 60px 20px; Espaciado superior para que no lo tape el header fijo */
    width: 100%;
	min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0)), url("media/home_1920x600.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
	background-color: rgb(230, 230, 210);
    background-attachment: fixed;	
}

.form-ingreso {
    margin-top: 50px;
	margin-bottom: 350px;
	width: 85%;
	max-width: 400px; /* Evita que la tarjeta sea gigantesca en monitores grandes */
	padding: 35px 40px;
	border-radius: 10px;
	border: 2px solid rgb(255, 255, 255);
	background: rgb(230, 230, 210);
	box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.45);
}

.logo-conteiner {
    display: flex;
	padding: 5px;	
    justify-content: center;
}

.logo__img {
	height: 65px;
	display: block;
}

/* Tipografías específicas para el Login (Evitan conflicto con las globales de 6em) */
.login-tit {
    font-size: 1.8rem;       
    font-weight: 700;
    color: rgb(50, 50, 50);
    margin-bottom: 25px;
    text-align: center;
}

.login-field {
    display: block;
    margin-bottom: 18px;
    text-align: left;
}

.login-label-text {
    display: block;
    font-size: 0.95rem;     
    font-weight: 700;
    color: rgb(50, 50, 50);
    margin-bottom: 6px;
}

.form-ingreso input[type="text"], 
.form-ingreso input[type="password"] {
    width: 100%;
    padding: 10px 12px;     
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333333;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-ingreso input[type="text"]:focus,
.form-ingreso input[type="password"]:focus {
    border-color: rgb(50, 130, 30);
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 130, 30, 0.15);
}

.form-ingreso .btn-retro {
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%; /* El botón ocupa el ancho de la tarjeta para mejor usabilidad */
}

.login-alerta {
    font-size: 0.85rem;       
    line-height: 1.4;
    color: rgb(110, 110, 110);
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 15px;
}

/* ==========================================================================
   3. BOTONES BASE & TIPOGRAFÍAS GLOBALES
   ========================================================================== */

.btn-container {
    max-width: 1000px;
    margin: 25px auto;
}
   
.btn-retro {
    background-color: rgb(210,210,190);
    color: #000000;
    padding: 14px 40px;            
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;     
    letter-spacing: 1px;           
    border: 2px solid #000000; 
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-retro:hover {
    background-color: rgba(50, 130, 30, 0.8);
    color: #FFFFFF;
    border: 2px solid #FFFFFF; 
}

/* ==========================================================================
   9. MEDIA QUERIES & PANTALLAS TÁCTILES (FIX DEFINITIVO)
   ========================================================================== */
   
   
@media (pointer: coarse) {
	#home {
		background-attachment: scroll; /* Fix para iOS táctil horizontal/vertical */
	}
}

@media (max-width: 480px) {
	
	.form-ingreso {
		margin-bottom: 200px;
		padding: 25px 20px;
	}
    .login-tit {
        font-size: 1.5rem;
    }
}
