@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --fondo: #f2f0ef;
    --white: #ffffff;
    --black: #333;
    --dark-rose: #801B23;
    --plomo: #505050;
    --red: #ff0000;
    --redOscuro: rgb(230, 0, 0);
    --font: 'Poppins', sans-serif;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}
body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fondo);
    padding: 30px;
    padding-top: 105px;
}

/* -- Login -- */
.container{
    position: relative;
    max-width: 850px;
    width: 100%;
    background: var(--white);
    padding: 40px 30px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    border-radius: 12px;
    margin-bottom: 80px;
}
.container .cover{
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 50%;
    z-index: 98;
    background: none;
}
.container .cover .front {
    background-color: #151515;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(204,0,0,0.06) 0px,
        rgba(204,0,0,0.06) 1px,
        transparent 1px,
        transparent 50%
    );
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    width: 100%;
    border-radius: 0 10px 10px 0px;
}

/* ← Quita el img absoluto anterior, ahora el img va dentro de .front */
.container .cover .front img {
    position: static; /* ← anula el absolute que tenías */
    width: 55%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(204,0,0,0.4));
}
.container .cover .front p {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    letter-spacing: 3px;
    font-family: var(--font);
}
.container form{
    height: 100%;
    width: 100%;
    background: var(--white);
}
.container .form-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}
.form-content .login-form{
    width: calc(100% / 2 - 25px);
}
form .form-content .title{
    position: relative;
    font-size: 24px;
    font-weight: 500;
    color: var(--black);
}
form .form-content .title:before{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 35px;
    background: var(--red);
}
form .signup-form .title:before{
    width: 20px;
}
form .form-content .input-boxes{
    margin-top: 30px;
}
form .form-content .input-box{
    display: flex;
    align-items: center;
    height: 50px;
    width: 100%;
    margin: 10px 0;
    position: relative;
}
.form-content .input-box input{
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    padding: 0 30px;
    font-size: 15px;
    font-weight: 400;
    border-bottom: 2px solid rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.form-content .input-box input:focus,
.form-content .input-box input:valid{
    border-color: var(--red);
}
.form-content .input-box i{
    position: absolute;
    color: var(--red);
    font-size: 17px;
}
form .form-content .button{
    color: var(--white);
    margin-top: 40px;
}
form .form-content .button input{
    color: var(--white);
    background: var(--red);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
}
form .form-content .button input:hover{
    background: var(--redOscuro);
}
.login-error {
    background: #ffe0e0;
    color: #CC0000;
    border-left: 3px solid #CC0000;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Variantes del mensaje de error */
.login-error.error {
    background: #ffe0e0;
    color: #CC0000;
    border-left-color: #CC0000;
}
.login-error.warning {
    background: #fff8e0;
    color: #b07800;
    border-left-color: #b07800;
}
.login-error.info {
    background: #e0f0ff;
    color: #1a56b0;
    border-left-color: #1a56b0;
}

/* -- Responsive --*/
@media (max-width: 730px){
    .container .cover{
        display: none;
    }
    .form-content .login-form{
        width: 100%;
    }
}