* {
    box-sizing: border-box;
}

.info-message {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    margin: 0 auto;
    border-radius: 5px;
    font-size: 1.05rem;
    font-weight: bold;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 15px black;
    letter-spacing: 0.5px;
    z-index: 1000;
    background: #1e1e1e;
    color: white;
}

.info-message-OK {
    background: #27ae60;
}

.info-message-error {
    background: #a42322;
}

.info-message-warning {
    background: #ffd54f;
}

.logo {
    margin-top: 10px;
    width: 140px;
    height: auto;
    overflow: hidden;
}
.horizontal-menu {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}


/* La caja queda fija arriba */
.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* fija la parte superior */
    padding-top: 15vh;       /* baja la caja un poco */
}

h1 {
    margin-bottom: 0.5rem;
    font-size: 28px;
    text-align: center;
}
p {
    margin-bottom: 2rem;
    font-size: 16px;
    text-align: center;
    color: #ccc;
}

/* Caja fija, solo crece por abajo */
.auth-box {
    padding: 10px 40px 35px 40px; /* 🔥 menos espacio abajo */
    width: 500px;
    border-radius: 5px;
    background: #1e1e1e;
    box-shadow: 0 4px 15px black;
    color: white;
    overflow: hidden;
    transition: height 0.35s ease; /* animación suave */
    margin-bottom: 100px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.tab-btn {
    width: 50%;
    padding: 12px;
    background: #333;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;    
    border-radius: 5px;
}
.tab-btn-login {
    margin-right: 10px;
}
.tab-btn-register {
    margin-left: 10px;
}

.tab-btn.active {
    background: #a42322;
}

.tab-btn:hover {
    background: #7d1a1a;
}

/* Contenidos: solo uno visible */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Inputs */
.auth-box label {
    display: block;
    margin: 10px 0 5px;
}

.auth-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 5px;
    border: none;
    margin-bottom: 12px; /* 🔥 menos espacio entre inputs */
    background: #333;
    color: white;
    font-size: 16px;
}

/* Botón */
.auth-btn {
    width: 100%;
    padding: 12px;
    background: #a42322;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px; /* 🔥 reduce hueco entre inputs y botón */
}

.auth-btn:hover {
    background: #7d1a1a;
}


@media (max-width: 600px) {
    .logo {
        width: 120px;
        margin: 0 auto;
        left: 0;
        right: 0;
        text-align: center;
    }

    .info-message {
        width: 90%;
        padding: 15px;
        font-size: 1rem;
        top: 80px;
        z-index: 9999;
    }

    .auth-box {
        width: 90%;
        padding: 0 20px 20px 20px;
        margin-top: 10px;
    }
    .auth-box h1 {
        font-size: 22px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .auth-btn {
        font-size: 16px;
        padding: 10px;
    }
}