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

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.20),
            rgba(0, 0, 0, 0.35)
        ),
        url('../../img/inicio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* CONTAINER (SPLIT LAYOUT) */
.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    background: rgba(10, 15, 30, 0.88);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(10px);
}

/* IZQUIERDA: PANEL INFO */
.info-panel {
    flex: 1.2;
    padding: 50px;
    background: 
        linear-gradient(
            135deg,
            rgba(60, 0, 0, 0.85) 0%,
            rgba(10, 0, 0, 0.95) 100%
        ),
        url('../../img/registro.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 215, 0, 0.15);
    text-align: center;
    color: white;
}

.info-panel h2 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 26px;
    color: #d8b56a;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(216, 181, 106, 0.3);
}

.info-panel p {
    color: #e0d5c1;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 480px;
}

.info-panel strong {
    color: #ffd700;
}

.info-panel .highlight {
    color: #ff5500;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 0 0 8px rgba(255, 85, 0, 0.4);
}

.divider {
    color: rgba(255, 215, 0, 0.3);
    font-size: 14px;
    margin: 20px 0;
    letter-spacing: 3px;
}

/* DERECHA: PANEL REGISTRO */
.panel {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.panel h1 {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: #d8b56a;
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(216, 181, 106, 0.2);
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
}

input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    transition: all 0.25s ease;
}

input:focus {
    outline: none;
    border-color: #d8b56a;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(216, 181, 106, 0.2);
}

/* PASSWORD STRENGTH METER */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-box {
    background: rgba(5, 8, 15, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.pw-title {
    color: #d8b56a;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.pw-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

#pwBar {
    width: 0;
    height: 100%;
    background: #ff4d4d;
    transition: width 0.3s, background-color 0.3s;
}

.password-box ul {
    list-style: none;
    padding-left: 0;
}

.password-box li {
    font-size: 12px;
    color: #ff4d4d;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s;
}

.password-box li.valid {
    color: #4ade80;
}

/* BOTONES */
button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #b22222;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background: #8f1b1b;
    transform: translateY(-1px);
}

.button-secondary {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #d8b56a;
    border: 1px solid rgba(216, 181, 106, 0.4);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s;
}

.button-secondary:hover {
    background: rgba(216, 181, 106, 0.08);
    border-color: #d8b56a;
}

/* MENSAJES */
.msg {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.msg.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.msg.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    body {
        padding: 10px;
    }
    
    .container {
        flex-direction: column;
        min-height: auto;
    }
    
    .info-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.15);
        padding: 35px 20px;
    }
    
    .panel {
        padding: 35px 20px;
    }
}