/* =========================================================
   SEOR Login Page — Diseño Horizontal Premium
   Layout de dos paneles (Info + Login) para escritorio.
   ========================================================= */

/* Contenedor principal con efecto de fondo */
.seor-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto; /* Eliminado min-height grande */
    padding: 20px 20px; /* Reducido al mínimo */
    background: radial-gradient(circle at center, rgba(0, 119, 139, 0.05) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

/* Tarjeta Premium Horizontal Compacta */
.seor-login-card {
    width: 100%;
    max-width: 860px; /* Reducido para ser más compacto */
    display: flex;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid rgba(0, 119, 139, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Importante para el panel lateral */
}

/* ── Panel Informativo (Izquierda) ── */
.seor-login-info {
    flex: 1;
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    padding: 30px; /* Reducido de 40px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.seor-login-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.seor-login-info-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #ffffff;
}

.seor-login-info-text {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 20px;
}

.seor-login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seor-login-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px; /* Reducido de 18px */
    font-size: 0.9rem;
    font-weight: 600;
}

.seor-login-features li span.dashicons {
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.seor-login-info-footer {
    margin-top: 20px; /* Reducido */
    font-size: 0.8rem;
    opacity: 0.8;
}

.seor-login-info-footer a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}

/* ── Lado del Formulario (Derecha) ── */
.seor-login-form-side {
    flex: 1;
    padding: 30px; /* Reducido */
    background: #ffffff;
}

.seor-login-header {
    text-align: left;
    margin-bottom: 15px; /* Reducido */
}

.seor-login-logo {
    margin-bottom: 10px;
}

.seor-login-logo-img {
    max-height: 40px; /* Reducido de 50px */
    width: auto;
}

.seor-login-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--wp--preset--color--primary);
    margin: 0 0 8px;
}

.seor-login-subtitle {
    font-size: 0.85rem;
    color: var(--wp--preset--color--secondary);
    margin: 0;
    opacity: 0.8;
}

/* Mensaje de error */
.seor-login-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 15px;
    margin-bottom: 30px;
    animation: shake 0.5s both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Form Fields */
.seor-login-field {
    margin-bottom: 10px; /* Reducido */
}

.seor-login-field label {
    display: block;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
}

.seor-login-field input[type="text"],
.seor-login-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #e0e0e0;
    border-radius: 0 !important; /* Asegurar rectangular */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.seor-login-field input[type="password"] {
    padding-right: 45px; /* Espacio para el ojo */
}

.seor-login-field input:focus {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 139, 0.05);
    outline: none;
}

.seor-login-password-wrapper {
    position: relative;
}

.seor-toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.seor-login-remember {
    margin-bottom: 15px; /* Reducido de 30px */
}

.seor-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.seor-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--wp--preset--color--primary);
}

.btn-login-submit {
    width: 100% !important;
    padding: 14px !important; /* Reducido */
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--wp--preset--color--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important; /* Rectangular */
    cursor: pointer;
    transition: all 0.3s ease !important;
    
    /* Configuración del notch animado */
    --seor-notch-size: 15px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Rectangular inicial */
    transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
}

.btn-login-submit:hover {
    background: var(--wp--preset--color--secondary) !important;
    /* Aplica el notch en hover */
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--seor-notch-size)),
        calc(100% - var(--seor-notch-size)) 100%,
        0 100%
    );
}

/* ── Mobile Responsiveness ── */
@media (max-width: 900px) {
    .seor-login-card {
        flex-direction: column-reverse;
        max-width: 500px;
    }
    
    .seor-login-info {
        padding: 40px 30px;
    }
    
    .seor-login-info-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 500px) {
    .seor-login-form-side {
        padding: 40px 25px;
    }
}
