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

:root {
    --sky: #e0f2fe;
    --sky-mid: #bae6fd;
    --sky-strong: #7dd3fc;
    --blue: #0ea5e9;
    --blue-dark: #0369a1;
    --white: #ffffff;
    --text-main: #0c4a6e;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --error: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    background: var(--white);
    overflow: hidden;
}

.panel-left {
    width: 52%;
    background: linear-gradient(160deg, #e0f7fa 0%, #b3e5fc 40%, #81d4fa 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    position: relative;
    overflow: hidden;
}

.pl-brand-logo{

    width:50%;

    height:50%;

    flex-shrink:0;

    object-fit:contain;

}

.panel-left::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    top: -140px; left: -140px;
}

.panel-left::after {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,0.13);
    bottom: -80px; right: -80px;
}

.brand {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-icon {
    width: 90px; height: 90px;
    background: white;
    border-radius: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 8px 30px rgba(14,165,233,0.25);
}

.brand-icon svg { width: 50px; height: 50px; }

.brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: var(--blue-dark);
    line-height: 1.25;
    margin-bottom: 16px;
}

.brand p {
    font-size: 1rem;
    color: #0369a1;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    max-width: 340px;
}

.decorative-circles {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.decorative-circles span {
    display: block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(14,165,233,0.4);
}

.decorative-circles span:nth-child(2) { background: rgba(14,165,233,0.65); }
.decorative-circles span:nth-child(3) { background: rgba(14,165,233,0.9); }

.panel-right {
    width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    background: var(--white);
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

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

.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── ALERTAS ─── */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--error);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #b91c1c;
    line-height: 1.5;
}

.alert-error svg { flex-shrink: 0; margin-top: 1px; }

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #15803d;
    line-height: 1.5;
}

.alert-success svg { flex-shrink: 0; margin-top: 1px; }

.alert-bloqueado {
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-left: 4px solid #a16207;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #a16207;
    line-height: 1.5;
}

.alert-bloqueado svg { flex-shrink: 0; margin-top: 1px; }

/* ─── CAMPOS ─── */
.field { margin-bottom: 22px; }

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.input-wrap { position: relative; }

.input-wrap > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sky-strong);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    border: 2px solid var(--sky-mid);
    border-radius: var(--radius-sm);
    padding: 0 46px 0 44px;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background: var(--sky);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder { color: var(--text-light); }

.input-wrap input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}

.input-wrap input.with-toggle {
    padding-right: 46px;
}

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-pass:hover { color: var(--blue); }

/* ─── EXTRAS ─── */
.extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.remember input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
}

/* ─── BOTÓN ─── */
.btn-submit {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(14,165,233,0.35);
}

.btn-submit:hover {
    opacity: 0.93;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(14,165,233,0.45);
}

.btn-submit:active { transform: translateY(0); }

/* ─── FOOTER ─── */
.form-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

.form-footer strong { color: var(--text-muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    body { flex-direction: column; overflow: auto; }
    .panel-left { width: 100%; min-height: 260px; padding: 40px 30px; }
    .panel-right { width: 100%; padding: 40px 30px; }
    .panel-left h1 { font-size: 1.6rem; }
}