/* =========================
   CONTENEDOR GENERAL
========================= */
.petbuddy-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
    font-family: system-ui, sans-serif;
}

/* =========================
   TARJETA DEL FORMULARIO
========================= */
.petbuddy-auth-card {
    background-color: rgba(255,255,255,0.95); /* Fondo transparente si quieres usar Elementor */
    border-radius: 18px;
    padding: 30px 25px 35px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-align: center;
}

/* =========================
   TÍTULO Y TEXTO
========================= */
.pb-title {
    color: #0073e6;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pb-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* =========================
   AVATAR (Registro y Verificación)
========================= */
.petbuddy-avatar,
.pb-avatar {
    width: 150px;               /* Tamaño del marco */
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #dfe6ee;  /* Fondo si no hay imagen */
    display: flex;
    justify-content: center;
    align-items: center;
}

.petbuddy-avatar img,
.pb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Llena todo el marco */
    object-position: center;    /* Centra la imagen dentro del marco */
    display: block;
}

/* =========================
   SUBIR FOTO
========================= */
.petbuddy-upload {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.petbuddy-upload input {
    display: none;
}

/* =========================
   INPUTS Y SELECT
========================= */
.petbuddy-auth-card input,
.petbuddy-auth-card select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* =========================
   BOTONES
========================= */
.petbuddy-btn {
    width: 100%;
    padding: 13px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg,#5b7cfa,#4b68d6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    transition: opacity 0.3s;
}

.petbuddy-btn:hover {
    opacity: 0.9;
}

.pb-form .petbuddy-btn {
    background-color: #0073e6;
}

.pb-form .petbuddy-btn:hover {
    background-color: #005bb5;
}

/* =========================
   MENSAJE DE ÉXITO
========================= */
.pb-success {
    color: green;
    margin-bottom: 15px;
}

/* =========================
   FOOTER
========================= */
.pb-footer {
    margin-top: 15px;
    font-size: 0.9rem;
}

.pb-footer a {
    color: #0073e6;
    text-decoration: none;
}

.pb-footer a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
    .petbuddy-auth-card {
        padding: 25px 15px 30px;
    }
    .pb-title {
        font-size: 1.5rem;
    }
    .petbuddy-avatar,
    .pb-avatar {
        width: 120px;
        height: 120px;
    }
    .petbuddy-btn,
    .pb-form .petbuddy-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
.pb-code {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.pb-error-input {
    border-color: red;
}

.pb-shake {
    animation: shake 0.4s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
/* =========================
   ÉXITO VERIFICACIÓN
========================= */
.pb-success-box {
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

.pb-checkmark {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    font-size: 40px;
    line-height: 70px;
    font-weight: bold;
    animation: pop 0.4s ease;
}

.pb-success-title {
    color: #4CAF50;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.pb-success-text {
    color: #333;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Loader */
.pb-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #ddd;
    border-top-color: #0073e6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animaciones */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pop {
    0% { transform: scale(0.5); }
    100% { transform: scale(1); }
}
/* =========================
   TOAST NOTIFICATIONS
========================= */
.pb-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.pb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pb-toast-success {
  background-color: #28a745; /* verde */
}

.pb-toast-error {
  background-color: #dc3545; /* rojo */
}

.pb-toast-info {
  background-color: #0073e6; /* azul */
}
.pb-btn-disabled {
  background-color: #000000 !important; /* gris */
  color: #666 !important;           /* texto gris */
  cursor: not-allowed !important;    /* cursor prohibido */
  pointer-events: none;              /* bloquea clicks */
}
