/* ==============================
   RESET Y BASE
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #FF7C00, #000000);
}

/* ==============================
   CONTENEDOR PRINCIPAL
============================== */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* ==============================
   TEXTOS Y FORMULARIO
============================== */
h2 {
    color: #333;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #FF7C00;
    outline: none;
}

/* ==============================
   PASSWORD TOGGLE
============================== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    user-select: none;
}

/* ==============================
   BOTÓN
============================== */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background-color: #FF7C00;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #333;
}

/* ==============================
   MENSAJES
============================== */
.messages {
    margin-bottom: 15px;
    color: #ff4d4d;
    font-weight: 500;
}

/* ==============================
   LOGO ERABI
============================== */
@font-face {
    font-family: 'Controller Four';
    src: url('../fonts/Controller-Ext-W01-Four.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Contenedor de bienvenida + logo */
.welcome-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    text-align: center;
}

/* Bloque del logo + tagline */
.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

/* Estilo de la nueva imagen del logo */
.erabi-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Texto "Bienvenido a" */
.welcome-text {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Tagline "Tecnología Audiovisual" */
.tagline {
    font-family: 'Controller Four', 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #FF7C00;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .welcome-text {
        font-size: 1.1rem;
    }

    .logo-erabi {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    input {
        font-size: 13px;
        padding: 10px;
    }

    .login-btn {
        padding: 10px;
    }
}