/* ==========================================================================
   Epycarpio Tickets - Auth Forms UI
   ========================================================================== */

/* Contenedor Principal */
.epy-auth-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.epy-auth-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

/* Grupos de Formulario (Labels e Inputs) */
.epy-auth-form .form-group {
    margin-bottom: 20px;
}

.epy-auth-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
}

.epy-auth-form input[type="text"],
.epy-auth-form input[type="email"],
.epy-auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    color: #333;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Estado Focus (Inspirado en tu color institucional) */
.epy-auth-form input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #68272a;
    box-shadow: 0 0 0 3px rgba(104, 39, 42, 0.15);
}

/* ==========================================================================
   Botón Institucional: .epya_button
   ========================================================================== */
.epya_button {
    width: 100%;
    background-color: #68272a !important; /* Forzamos para evitar sobreescritura del tema */
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.epya_button:hover {
    background-color: #521f21 !important; /* Un tono ligeramente más oscuro al pasar el mouse */
}

.epya_button:active {
    transform: scale(0.98);
}

.epya_button:disabled {
    background-color: #a37577 !important;
    cursor: not-allowed;
}

/* Enlaces del Footer */
.epy-auth-form .form-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.epy-auth-form .form-footer a {
    color: #68272a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.epy-auth-form .form-footer a:hover {
    color: #3a1617;
    text-decoration: underline;
}

/* ==========================================================================
   Alertas de Estado (Profesionales)
   ========================================================================== */
.epy-status-msg:not(:empty) {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: epyFadeIn 0.3s ease;
}

/* Clases dinámicas que inyectaremos con JS */
.epy-alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.epy-alert-success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.epy-alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@keyframes epyFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Estilos de los Paneles de Usuario (Shortcodes)
   ========================================================================== */
.epy-panel-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

.epy-panel-container h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
}

.epy-panel-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Separación uniforme entre botones */
}

.epy-panel-buttons .epya_button {
    display: block;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
}

/* Variante visual sutil para el botón de cerrar sesión */
.epya_button.epya_button_logout {
    background-color: #4a5568 !important; /* Gris oscuro elegante */
}

.epya_button.epya_button_logout:hover {
    background-color: #2d3748 !important;
}