/* Variables CSS para fácil personalización */
:root {
    --primary-color: #18171c;
    --primary-dark: #18171c;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #18171c;
    --text-secondary: #64748b;
    --background: #f3f3f3;
    --card-bg: #f3f3f3;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset moderno */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*::before,
*::after {
    box-sizing: border-box;
}

/* Aseguramos que el HTML también ocupe toda la altura */
html {
    height: 100%;
}

/* Estilos base del body */
body {
    font-family: "din-2014", sans-serif;
    background: var(--background);
    display: flex;
    flex-direction: column; /* Cambiamos a columna para logo arriba */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* Contenedor principal CON sombra mejorada */
.container {
    padding: 40px;
    padding-bottom:80px;
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto 60px auto; /* Centrado con margen inferior */
    max-width: 280px;
    height: auto;
    position: relative;
    z-index: 2;
}

/* Imagen de portada */
.cover {
    display: block;
    margin: 0 auto 0px;
    width: 520px;
    max-width: 100%;
    height: auto;
    text-align: center;
}

/* Texto */
p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 400;
}

/* Formulario */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}
.form-group { position: relative; }

/* Input email */
input[type="email"] {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

input[type="email"]:focus {
    outline: none;
    border-color: #999999;
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px);
}

input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Botón */
.btn {
    padding: 18px 40px;
    background: #f3f3f3;
    color: #18171c;
    border: 3px solid #18171c;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: normal;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: "din-condensed", sans-serif;
}


* Estados del botón: Hover y Focus */
.btn:hover {
    background: #18171c;
    color: #f3f3f3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn:focus {
    outline: none;
    background: #18171c;
    color: #f3f3f3;
    box-shadow: 0 0 0 4px rgba(24, 23, 28, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estado de carga del botón */
.btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .btn { 
        padding: 16px 30px; 
        font-size: 1rem; 
    }
    
    .btn:hover {
        transform: none; /* Eliminamos la transformación en móviles */
    }
}


/* Mensajes de error */
.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
        min-height: 100vh;
    }
    
    .container { 
        padding: 30px 20px 80px; 
    }
    
    p { font-size: 1rem; }
    .btn { padding: 16px 30px; font-size: 1rem; }
    input[type="email"] { padding: 18px 20px; }
    
    .cover {
        width: 100%;
        margin-bottom:0px;
    }
    .btn {
        padding: 16px 30px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 10px;
    }
    
    .container { 
        padding: 25px 15px;
      
    }
.logo {
        max-width: 180px;
        margin-bottom: 25px;
    }
    .btn {
        padding: 16px 30px;
        font-size: 1.3rem;
    }
}
