/**
 * ==========================================================================
 * ESTILOS DE AUTENTICACIÓN CON GOOGLE & MODAL DE ÉXITO - TUESTANTE
 * ==========================================================================
 */

/* Separador visual entre login tradicional y login social */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 14px;
    background: transparent;
}

/* Contenedor del Botón de Google */
.google-auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
}

.google-auth-container-hidden {
    display: none;
}

.register-google-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: -8px 0 20px;
    color: #64748b;
    font-size: 0.95rem;
}

.google-register-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #005187;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

.google-register-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.google-register-link:hover {
    color: #003d66;
}

/* Botón Oficial de Google Identity Services renderizado */
#googleBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 44px;
}

/* Botón Personalizado de Google (estilo limpio y moderno) */
.btn-google-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 46px;
    padding: 0 16px;
    background-color: #ffffff;
    color: #374151;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm, 8px);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-google-custom:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-google-custom:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.google-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================================================
   MODAL DE ÉXITO TRAS REGISTRO CON GOOGLE
   ========================================================================== */

.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    animation: modalFadeIn 0.25s ease-out;
}

.auth-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
}

.modal-icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 20px;
    background-color: #ecfdf5;
    border: 2px solid #a7f3d0;
    color: #059669;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
    animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f1f5f9;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 12px;
}

.modal-description {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 26px;
}

.modal-description strong {
    color: #0f172a;
}

.modal-user-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 24px;
    text-align: left;
}

.modal-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.modal-user-info-text {
    overflow: hidden;
}

.modal-user-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-user-email {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-modal-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #005187 0%, #00365c 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 81, 135, 0.35);
    transition: all 0.2s ease;
}

.btn-modal-continue:hover {
    box-shadow: 0 6px 20px rgba(0, 81, 135, 0.45);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0060a0 0%, #004372 100%);
}

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

/* Animaciones */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}
