* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f4f4f4;
}

.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 82vh;
    padding: 36px 20px;
    background-color: #F4EFF2;
    background-image:
        radial-gradient(900px 520px at 0% 0%, rgba(105, 27, 60, .08), transparent 65%),
        radial-gradient(820px 520px at 100% 100%, rgba(168, 124, 54, .10), transparent 65%),
        radial-gradient(rgba(105, 27, 60, .09) 1px, transparent 1.3px);
    background-size: auto, auto, 24px 24px;
}

.login-card {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #fff;
    border-radius: 6px 28px 6px 28px;
    overflow: hidden;
    border: 1px solid #E3D3DA;
    box-shadow: 0 22px 55px rgba(105, 27, 60, .2), 0 2px 8px rgba(0, 0, 0, .06);
    animation: loginIn .4s ease;
}
@keyframes loginIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.login-lado {
    position: relative;
    display: flex;
    align-items: center;
    padding: 44px 36px;
    color: #fff;
    background:
        radial-gradient(500px 360px at 100% 0%, rgba(168, 124, 54, .22), transparent 65%),
        radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px),
        linear-gradient(155deg, #7C2349 0%, #691B3C 55%, #4D1230 100%);
    background-size: auto, 24px 24px, auto;
    border-right: 4px solid #A87C36;
}
.login-lado-txt { position: relative; width: 100%; }
.login-lado h1 {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 2.8rem;
    line-height: 1;
}
.login-lema { margin-top: 10px; font-size: .92rem; color: #F0D9E3; line-height: 1.4; }

.login-lista { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.login-lista li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 4px solid #A87C36;
    border-radius: 4px 14px 4px 14px;
    backdrop-filter: blur(2px);
}
.login-ico {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #C29A4F, #A87C36);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}
.login-ico img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.login-lista b { display: block; font-size: .86rem; font-weight: 800; color: #fff; }
.login-lista small { display: block; margin-top: 2px; font-size: .74rem; line-height: 1.4; color: #E9D3DD; }

.form_login {
    padding: 2.8rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.form_login h2 {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 900;
    color: #691B3C;
    font-size: 1.6rem;
    margin-bottom: .3rem;
}
.login-sub { color: #8a7f83; font-size: .82rem; line-height: 1.45; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.05rem; }
.form-group label {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #691B3C;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 .9rem;
    border: 1.5px solid #D9C3CE;
    border-radius: 12px;
    font-size: .92rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input::placeholder { color: #b9b0b4; }
.form-group input:focus {
    outline: none;
    border-color: #691B3C;
    box-shadow: 0 0 0 3px rgba(105, 27, 60, .16);
}

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 2.8rem; }
.pass-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .65;
    transition: opacity .15s;
}
.pass-toggle:hover { opacity: 1; }
.pass-toggle img { width: 20px; height: 20px; display: block; }

.btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(145deg, #C29A4F, #A87C36);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    margin-top: .5rem;
    box-shadow: 0 6px 16px rgba(168, 124, 54, .35);
    transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn-volver {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: .65rem;
    text-decoration: none;
    color: #691B3C;
    background: #fff;
    border: 1.5px solid #691B3C;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 800;
    transition: background .15s, color .15s;
}
.btn-volver:hover { background: #691B3C; color: #fff; }

.error-msg {
    color: #A02B41;
    background: #FBEAEE;
    border: 1px solid #F1CCD3;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

@media (max-width: 760px) {
    .login-card { grid-template-columns: 1fr; max-width: 440px; }
    .login-lado { padding: 24px 22px; border-right: none; border-bottom: 4px solid #A87C36; }
    .login-lado h1 { font-size: 2rem; }
    .login-lista { display: none; }
    .form_login { padding: 1.8rem 1.5rem 2rem; }
}
