/* ============================================================================
   static/cliente/css/google.css
   Botón "Continuar con Google" (login y registra) y el aviso de cuenta
   conectada. Respeta la guía de marca de Google: fondo blanco, borde gris,
   logo G a color sin modificar.

   Multi YA 1.1.0 (2026-11-24) · Archivo modificado en esta versión
   ============================================================================ */

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    color: #3c4043;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .1px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, border-color .2s ease, transform .1s ease;
}
.btn-google:hover {
    background: #f8faff;
    border-color: #d2e3fc;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .18), 0 4px 10px rgba(60, 64, 67, .10);
}
.btn-google:active { transform: translateY(1px); box-shadow: none; }
.btn-google:focus-visible { outline: 3px solid rgba(66, 133, 244, .45); outline-offset: 2px; }
.btn-google .g-logo { width: 20px; height: 20px; flex: none; }
.btn-google.cargando { pointer-events: none; opacity: .7; }

/* Separador "o" con líneas a los lados */
.separador-google {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: #9ca3af;
    font-size: 13px;
}
.separador-google::before,
.separador-google::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* En registro el botón va encima del formulario */
#bloque-google-btn { margin-bottom: 4px; }

/* Aviso "Conectado con Google" en el registro */
.google-conectado {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    animation: google-entra .35s ease both;
}
.google-conectado[hidden] { display: none; }
.google-conectado img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    flex: none;
}
.google-conectado-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.google-conectado-texto .titulo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #15803d;
    font-size: 14px;
}
.google-conectado-texto .titulo .g-logo { width: 15px; height: 15px; }
#google-correo {
    color: #1f2937;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.google-conectado-texto .ayuda { color: #6b7280; font-size: 12.5px; }
.google-cambiar {
    flex: none;
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
}
.google-cambiar:hover { background: rgba(21, 128, 61, .08); }

/* Correo fijo (viene de Google) */
input.solo-lectura {
    background: #f3f4f6 !important;
    color: #4b5563;
    cursor: not-allowed;
}

/* Lo que se oculta en modo Google */
#grupo-password[hidden],
.grid-rol[hidden],
#bloque-google-btn[hidden] { display: none !important; }

.foto-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@keyframes google-entra {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .google-conectado { animation: none; }
}
