@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { 
    box-sizing: border-box; 
}

body { 
    margin: 0; 
    min-height: 100vh; 
    color: #172033; 
    background: radial-gradient(circle at 15% 20%, #fff, #f7f3f3 35%, #edf0f4); 
    font-family: 'Inter', 'Segoe UI', sans-serif; 
}

.login-wrapper { 
    min-height: 100vh; 
    display: grid; 
    place-items: center; 
    padding: 24px; 
}

.login-card { 
    display: grid; 
    grid-template-columns: 42% 58%; 
    width: min(780px, 100%); 
    min-height: 460px; 
    overflow: hidden; 
    border: 1px solid #e5e7eb; 
    border-radius: 22px; 
    background: #fff; 
    box-shadow: 0 24px 70px rgba(23,32,51,.13); 
}

.login-left { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    padding: 44px 36px; 
    color: #fff; 
    background: linear-gradient(155deg, #a61b1b, #711414 55%, #27212a); 
}

.login-left:after { 
    content: ''; 
    position: absolute; 
    right: -80px; 
    bottom: -100px; 
    width: 260px; 
    height: 260px; 
    border: 50px solid rgba(255,255,255,.04); 
    border-radius: 50%; 
}

/* --- CAMBIOS APLICADOS PARA EL LOGO --- */
.brand-box {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

.brand-box img { 
    position: relative; 
    z-index: 1; 
    width: 180px;  /* Logo más grande */
    padding: 12px; 
    border-radius: 18px; 
    background: #fff; 
}
/* -------------------------------------- */

.features { 
    position: relative; 
    z-index: 1; 
    display: grid; 
    gap: 13px; 
}

.features div { 
    display: flex; 
    align-items: center; 
    gap: 11px; 
    color: rgba(255,255,255,.82); 
    font-size: 12px; 
    font-weight: 600; 
}

.features i { 
    display: grid; 
    place-items: center; 
    width: 30px; 
    height: 30px; 
    border-radius: 8px; 
    background: rgba(255,255,255,.11); 
}

.login-right { 
    display: grid; 
    place-items: center; 
    padding: 44px 52px; 
}

.login-form { 
    width: 100%; 
    max-width: 330px; 
}

.form-header { 
    margin-bottom: 28px; 
}

.form-header h2 { 
    margin: 0; 
    font-size: 26px; 
    font-weight: 800; 
    letter-spacing: -.035em; 
}

.form-header p { 
    margin: 7px 0 0; 
    color: #667085; 
    font-size: 13px; 
}

.custom-alert { 
    padding: 10px 12px; 
    border: 0; 
    border-radius: 9px; 
    font-size: 12px; 
}

.input-group-custom { 
    margin-bottom: 16px; 
}

.input-group-custom label { 
    display: block; 
    margin-bottom: 7px; 
    color: #344054; 
    font-size: 11px; 
    font-weight: 700; 
}

.input-box { 
    display: flex; 
    align-items: center; 
    height: 45px; 
    padding: 0 12px; 
    border: 1px solid #dfe3e8; 
    border-radius: 10px; 
    background: #fbfcfd; 
    transition: .18s; 
}

.input-box:focus-within { 
    border-color: #be7777; 
    box-shadow: 0 0 0 3px #fbeaea; 
    background: #fff; 
}

.input-box > i { 
    width: 21px; 
    color: #98a2b3; 
    font-size: 12px; 
}

.input-box input { 
    flex: 1; 
    min-width: 0; 
    border: 0; 
    outline: 0; 
    background: transparent; 
    color: #172033; 
    font-size: 13px; 
}

.input-box button { 
    width: 30px; 
    border: 0; 
    color: #667085; 
    background: transparent; 
    cursor: pointer;
}

.btn-login { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    width: 100%; 
    height: 45px; 
    margin-top: 7px; 
    border: 0; 
    border-radius: 10px; 
    color: #fff; 
    background: linear-gradient(135deg, #a61b1b, #741313); 
    box-shadow: 0 8px 18px rgba(166,27,27,.2); 
    font-size: 12.5px; 
    font-weight: 700; 
    cursor: pointer;
}

.btn-login:hover {
    background: linear-gradient(135deg, #8a1515, #590e0e);
}

.login-footer { 
    margin-top: 22px; 
    text-align: center; 
    color: #98a2b3; 
    font-size: 10px; 
    letter-spacing: .08em; 
}

/* --- MEDIA QUERIES --- */
@media (max-width: 680px) {
    .login-card { 
        grid-template-columns: 1fr; 
        min-height: auto; 
        max-width: 410px; 
    }
    .login-left { 
        min-height: 148px; 
        padding: 24px; 
    }
    .brand-box img { 
        width: 130px; /* Logo ajustado para móviles */
    }
    .features { 
        display: none; 
    }
    .login-right { 
        padding: 32px 24px 28px; 
    }
}

@media (max-width: 380px) {
    .login-wrapper { 
        padding: 12px; 
    }
    .login-card { 
        border-radius: 16px; 
    }
    .login-right { 
        padding: 26px 18px 22px; 
    }
}